xref: /kvmtool/x86/bios/int15.c (revision af7b08685968ff8f6ffdf5cac1ef067688bce8c6)
1 #include "kvm/bios.h"
2 
3 #include "kvm/e820.h"
4 
5 #include <asm/processor-flags.h>
6 
int15_handler(struct biosregs * regs)7 bioscall void int15_handler(struct biosregs *regs)
8 {
9 	switch (regs->eax) {
10 	case 0xe820:
11 		e820_query_map(regs);
12 		break;
13 	default:
14 		/* Set CF to indicate failure.  */
15 		regs->eflags	|= X86_EFLAGS_CF;
16 		break;
17 	}
18 }
19