+/* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
+/* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
+
#ifndef __VMM_H
#define __VMM_H
#define V3_Hook_Interrupt(irq, opaque) \
({ \
- int ret = 0; \
+ int ret = 0; \
extern struct vmm_os_hooks * os_hooks; \
if ((os_hooks) && (os_hooks)->hook_interrupt) { \
ret = (os_hooks)->hook_interrupt(irq, opaque); \
#endif //!__V3VEE__
-/*
- #ifdef __V3VEE__
- typedef struct guest_info v3_guest_t;
- #else
- typedef void v3_guest_t;
- #endif
-*/
//
// This is the value given when the interrupt is hooked.
// This will never be NULL
- void *opaque;
+ void * opaque;
};
-void deliver_interrupt_to_vmm(struct vmm_intr_state *state);
+void deliver_interrupt_to_vmm(struct vmm_intr_state * state);
/* This will contain function pointers that provide OS services */
- // Filled in by initialization
-
};