Changeset 02a99d2 in mainline for arch/ia32/src/interrupt.c
- Timestamp:
- 2005-05-11T19:51:55Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 69515260
- Parents:
- 45671f48
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/interrupt.c
r45671f48 r02a99d2 29 29 #include <arch/interrupt.h> 30 30 #include <print.h> 31 #include <debug.h> 31 32 #include <panic.h> 32 33 #include <arch/i8259.h> … … 49 50 iroutine trap_register(__u8 n, iroutine f) 50 51 { 52 ASSERT(n < IVT_ITEMS); 53 51 54 iroutine old; 52 55 53 56 old = ivt[n]; 54 57 ivt[n] = f; 55 56 58 59 return old; 57 60 } 58 61 … … 63 66 void trap_dispatcher(__u8 n, __u32 stack[]) 64 67 { 65 ivt[n](n,stack); 68 ASSERT(n < IVT_ITEMS); 69 70 ivt[n](n, stack); 66 71 } 67 72 … … 113 118 enable_irqs_function(irqmask); 114 119 else 115 panic( PANIC"no enable_irqs_function\n");120 panic("no enable_irqs_function\n"); 116 121 } 117 122 … … 121 126 disable_irqs_function(irqmask); 122 127 else 123 panic( PANIC"no disable_irqs_function\n");128 panic("no disable_irqs_function\n"); 124 129 } 125 130 … … 129 134 eoi_function(); 130 135 else 131 panic( PANIC"no eoi_function\n");136 panic("no eoi_function\n"); 132 137 133 138 }
Note:
See TracChangeset
for help on using the changeset viewer.