- Timestamp:
- Apr 17, 2007 12:25:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/trpm.h
r416 r2123 19 19 */ 20 20 21 #ifndef __VBox_ im_h__22 #define __VBox_ im_h__21 #ifndef __VBox_trpm_h__ 22 #define __VBox_trpm_h__ 23 23 24 24 #include <VBox/cdefs.h> … … 38 38 { 39 39 TRPM_TRAP_HAS_ERRORCODE = 0, 40 TRPM_TRAP_NO_ERRORCODE 40 TRPM_TRAP_NO_ERRORCODE, 41 /** The usual 32-bit paranoia. */ 42 TRPM_TRAP_32BIT_HACK = 0x7fffffff 41 43 } TRPMERRORCODE; 42 44 … … 44 46 * TRPM event type 45 47 */ 48 /** Note: must match trpm.mac! */ 46 49 typedef enum 47 50 { 48 TRPM_TRAP = 0, 49 TRPM_HARDWARE_INT, 50 TRPM_SOFTWARE_INT 51 TRPM_TRAP = 0, 52 TRPM_HARDWARE_INT = 1, 53 TRPM_SOFTWARE_INT = 2, 54 /** The usual 32-bit paranoia. */ 55 TRPM_32BIT_HACK = 0x7fffffff 51 56 } TRPMEVENT; 52 57 … … 63 68 * @param pVM The virtual machine. 64 69 * @param pu8TrapNo Where to store the trap number. 65 * @param p fSoftwareInterrupt Where to store the software interrupt indicator.66 */ 67 TRPMDECL(int) TRPMQueryTrap(PVM pVM, uint8_t *pu8TrapNo, bool *pfSoftwareInterrupt);70 * @param pEnmType Where to store the trap type 71 */ 72 TRPMDECL(int) TRPMQueryTrap(PVM pVM, uint8_t *pu8TrapNo, TRPMEVENT *pEnmType); 68 73 69 74 /** … … 120 125 * @param pVM The virtual machine. 121 126 * @param u8TrapNo The trap vector to assert. 122 * @param fSoftwareInterrupt Indicate if it's a software interrupt or not.123 */ 124 TRPMDECL(int) TRPMAssertTrap(PVM pVM, uint8_t u8TrapNo, bool fSoftwareInterrupt);127 * @param enmType Trap type. 128 */ 129 TRPMDECL(int) TRPMAssertTrap(PVM pVM, uint8_t u8TrapNo, TRPMEVENT enmType); 125 130 126 131 /** … … 176 181 * @param pVM The virtual machine. 177 182 * @param pu8TrapNo Where to store the trap number. 178 * @param p fSoftwareInterrupt Where to store the software interrupt indicator.183 * @param pEnmType Where to store the trap type. 179 184 * @param puErrorCode Where to store the error code associated with some traps. 180 185 * ~0U is stored if the trap have no error code. 181 186 * @param puCR2 Where to store the CR2 associated with a trap 0E. 182 187 */ 183 TRPMDECL(int) TRPMQueryTrapAll(PVM pVM, uint8_t *pu8TrapNo, bool *pfSoftwareInterrupt, PRTGCUINT puErrorCode, PRTGCUINTPTR puCR2);188 TRPMDECL(int) TRPMQueryTrapAll(PVM pVM, uint8_t *pu8TrapNo, TRPMEVENT *pEnmType, PRTGCUINT puErrorCode, PRTGCUINTPTR puCR2); 184 189 185 190
Note:
See TracChangeset
for help on using the changeset viewer.