| version 1.15, 2004/03/12 13:34:08 | version 1.18, 2005/02/04 05:32:24 | 
| Line 72  exception(int num, int error_code) | Line 72  exception(int num, int error_code) | 
 |  |  | 
 | __ASSERT((unsigned int)num < EXCEPTION_NUM); | __ASSERT((unsigned int)num < EXCEPTION_NUM); | 
 |  |  | 
 |  | #if 0 | 
 |  | iptrace_out(); | 
 |  | debugwriteseg("execption.bin", &CPU_STAT_SREG(CPU_CS_INDEX), CPU_PREV_EIP & 0xffff0000, 0x10000); | 
 |  | #endif | 
 |  |  | 
 | VERBOSE(("exception: -------------------------------------------------------------- start")); | VERBOSE(("exception: -------------------------------------------------------------- start")); | 
 | VERBOSE(("exception: %s, error_code = %x at %04x:%08x", exception_str[num], error_code, CPU_CS, CPU_PREV_EIP)); | VERBOSE(("exception: %s, error_code = %x at %04x:%08x", exception_str[num], error_code, CPU_CS, CPU_PREV_EIP)); | 
 | VERBOSE(("%s", cpu_reg2str())); | VERBOSE(("%s", cpu_reg2str())); | 
| Line 143  exception(int num, int error_code) | Line 148  exception(int num, int error_code) | 
 | #if defined(IA32_SUPPORT_DEBUG_REGISTER) | #if defined(IA32_SUPPORT_DEBUG_REGISTER) | 
 | if (num != BP_EXCEPTION) { | if (num != BP_EXCEPTION) { | 
 | if (CPU_INST_OP32) { | if (CPU_INST_OP32) { | 
 |  | #if defined(IA32_DONT_USE_SET_EFLAGS_FUNCTION) | 
 |  | CPU_EFLAG |= RF_FLAG; | 
 |  | #else | 
 | set_eflags(REAL_EFLAGREG|RF_FLAG, RF_FLAG); | set_eflags(REAL_EFLAGREG|RF_FLAG, RF_FLAG); | 
 |  | #endif | 
 | } | } | 
 | } | } | 
 | #endif | #endif | 
| Line 207  exception(int num, int error_code) | Line 216  exception(int num, int error_code) | 
 | * D          : ゲートのサイズ.0 = 16 bit, 1 = 32 bit | * D          : ゲートのサイズ.0 = 16 bit, 1 = 32 bit | 
 | */ | */ | 
 |  |  | 
| static void interrupt_task_gate(descriptor_t *gd, int softintp, int errorp, int error_code); | static void interrupt_task_gate(const descriptor_t *gd, int softintp, int errorp, int error_code); | 
| static void interrupt_intr_or_trap(descriptor_t *gd, int softintp, int errorp, int error_code); | static void interrupt_intr_or_trap(const descriptor_t *gd, int softintp, int errorp, int error_code); | 
 |  |  | 
 | void | void | 
 | interrupt(int num, int softintp, int errorp, int error_code) | interrupt(int num, int softintp, int errorp, int error_code) | 
| Line 324  interrupt(int num, int softintp, int err | Line 333  interrupt(int num, int softintp, int err | 
 | } | } | 
 |  |  | 
 | static void | static void | 
| interrupt_task_gate(descriptor_t *gd, int softintp, int errorp, int error_code) | interrupt_task_gate(const descriptor_t *gd, int softintp, int errorp, int error_code) | 
 | { | { | 
 | selector_t task_sel; | selector_t task_sel; | 
 | int rv; | int rv; | 
| Line 369  interrupt_task_gate(descriptor_t *gd, in | Line 378  interrupt_task_gate(descriptor_t *gd, in | 
 | } | } | 
 |  |  | 
 | static void | static void | 
| interrupt_intr_or_trap(descriptor_t *gd, int softintp, int errorp, int error_code) | interrupt_intr_or_trap(const descriptor_t *gd, int softintp, int errorp, int error_code) | 
 | { | { | 
 | selector_t cs_sel, ss_sel; | selector_t cs_sel, ss_sel; | 
 | UINT stacksize; | UINT stacksize; |