Changeset 02a99d2 in mainline for arch/ia32/src
- 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
- Location:
- arch/ia32/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/debug/panic.s
r45671f48 r02a99d2 28 28 29 29 .text 30 .global panic 30 .global panic_printf 31 31 32 panic :32 panic_printf: 33 33 movl $halt,(%esp) # fake stack to make printf return to halt 34 34 jmp printf -
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 } -
arch/ia32/src/pm.c
r45671f48 r02a99d2 144 144 tss_p = (struct tss *) malloc(sizeof(struct tss)); 145 145 if (!tss_p) 146 panic( PANIC"could not allocate TSS\n");146 panic("could not allocate TSS\n"); 147 147 } 148 148 -
arch/ia32/src/smp/mps.c
r45671f48 r02a99d2 470 470 */ 471 471 if (!(gdt_new = (struct descriptor *) malloc(GDT_ITEMS*sizeof(struct descriptor)))) 472 panic( PANIC"couldn't allocate memory for GDT\n");472 panic("couldn't allocate memory for GDT\n"); 473 473 474 474 memcopy(gdt, gdt_new, GDT_ITEMS*sizeof(struct descriptor));
Note:
See TracChangeset
for help on using the changeset viewer.