Changeset fcfac420 in mainline for arch/amd64/src/interrupt.c
- Timestamp:
- 2005-12-10T01:02:31Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6095342
- Parents:
- 973be64e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/interrupt.c
r973be64e rfcfac420 58 58 } 59 59 60 static void print_info_errcode( __u8 n, __native x[])60 static void print_info_errcode(int n, void *st) 61 61 { 62 62 char *symbol; 63 __native *x = (__native *) st; 63 64 64 65 if (!(symbol=get_symtab_entry(x[1]))) … … 89 90 */ 90 91 91 static iroutine ivt[IVT_ITEMS];92 93 92 void (* disable_irqs_function)(__u16 irqmask) = NULL; 94 93 void (* enable_irqs_function)(__u16 irqmask) = NULL; 95 94 void (* eoi_function)(void) = NULL; 96 95 97 iroutine trap_register(__u8 n, iroutine f)96 void null_interrupt(int n, void *st) 98 97 { 99 ASSERT(n < IVT_ITEMS); 100 101 iroutine old; 102 103 old = ivt[n]; 104 ivt[n] = f; 105 106 return old; 107 } 98 __native *stack = (__native *) st; 108 99 109 /*110 * Called directly from the assembler code.111 * CPU is interrupts_disable()'d.112 */113 void trap_dispatcher(__u8 n, __native stack[])114 {115 ASSERT(n < IVT_ITEMS);116 117 ivt[n](n, stack);118 }119 120 void null_interrupt(__u8 n, __native stack[])121 {122 100 printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n",n,__FUNCTION__); \ 123 101 printf("stack: %L, %L, %L, %L\n", stack[0], stack[1], stack[2], stack[3]); … … 125 103 } 126 104 127 void gp_fault( __u8 n, __native stack[])105 void gp_fault(int n, void *stack) 128 106 { 129 107 print_info_errcode(n,stack); … … 131 109 } 132 110 133 void ss_fault( __u8 n, __native stack[])111 void ss_fault(int n, void *stack) 134 112 { 135 113 print_info_errcode(n,stack); … … 138 116 139 117 140 void nm_fault( __u8 n, __native stack[])118 void nm_fault(int n, void *stack) 141 119 { 142 120 #ifdef CONFIG_FPU_LAZY … … 149 127 150 128 151 void page_fault( __u8 n, __native stack[])129 void page_fault(int n, void *stack) 152 130 { 153 131 print_info_errcode(n,stack); … … 156 134 } 157 135 158 void syscall( __u8 n, __native stack[])136 void syscall(int n, void *stack) 159 137 { 160 138 printf("cpu%d: syscall\n", CPU->id); … … 162 140 } 163 141 164 void tlb_shootdown_ipi( __u8 n, __native stack[])142 void tlb_shootdown_ipi(int n, void *stack) 165 143 { 166 144 trap_virtual_eoi(); … … 168 146 } 169 147 170 void wakeup_ipi( __u8 n, __native stack[])148 void wakeup_ipi(int n, void *stack) 171 149 { 172 150 trap_virtual_eoi();
Note:
See TracChangeset
for help on using the changeset viewer.