7 int protected_mode_call_narg(
uint32_t arg_count,
21 return protected_mode_call_narg(0, (
uintptr_t)func, 0, 0);
34 return protected_mode_call_narg(1, (
uintptr_t)func, arg1, 0);
47 return protected_mode_call_narg(2, (
uintptr_t)func, arg1, arg2);
52 int (*doit)(
void) = func;
68 return doit(arg1, arg2);
static int protected_mode_call(void *func)
static int protected_mode_call_1arg(void *func, uint32_t arg1)
static int protected_mode_call_2arg(void *func, uint32_t arg1, uint32_t arg2)
typedef void(X86APIP X86EMU_intrFuncs)(int num)