- 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
- Files:
-
- 10 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)); -
arch/ia64/src/fake.s
r45671f48 r02a99d2 48 48 .global map_page_to_frame 49 49 .global memsetb 50 .global panic 50 .global panic_printf 51 51 52 52 before_thread_runs_arch: … … 69 69 map_page_to_frame: 70 70 memsetb: 71 panic :71 panic_printf: 72 72 br.ret.sptk.many b0 73 73 -
arch/mips/src/cache.c
r45671f48 r02a99d2 32 32 void cache_error(void) 33 33 { 34 panic( PANIC"cache_error exception\n");34 panic("cache_error exception\n"); 35 35 } -
arch/mips/src/exception.c
r45671f48 r02a99d2 52 52 case EXC_TLBL: 53 53 case EXC_TLBS: tlb_invalid(); break; 54 default: panic( PANIC"unhandled exception %d\n", excno); break;54 default: panic("unhandled exception %d\n", excno); break; 55 55 } 56 56 -
arch/mips/src/interrupt.c
r45671f48 r02a99d2 76 76 case 0x4: 77 77 case 0x5: 78 case 0x6: panic( PANIC"unhandled interrupt %d\n", i); break;78 case 0x6: panic("unhandled interrupt %d\n", i); break; 79 79 case 0x7: 80 80 /* clear timer interrupt */ -
arch/mips/src/mm/tlb.c
r45671f48 r02a99d2 42 42 } 43 43 44 panic( PANIC"tlb_refill exception\n");44 panic("tlb_refill exception\n"); 45 45 } 46 46 47 47 void tlb_invalid(void) 48 48 { 49 panic( PANIC"%X: TLB exception at %X", cp0_badvaddr_read(), THREAD ? THREAD->saved_epc : 0);49 panic("%X: TLB exception at %X", cp0_badvaddr_read(), THREAD ? THREAD->saved_epc : 0); 50 50 } 51 51 -
arch/mips/src/panic.s
r45671f48 r02a99d2 33 33 .set nomacro 34 34 35 .global panic 35 .global panic_printf 36 36 37 panic :37 panic_printf: 38 38 jal printf 39 39 nop
Note:
See TracChangeset
for help on using the changeset viewer.