Changeset f651e80 in mainline for kernel/arch/ia32xen
- Timestamp:
- 2009-01-08T12:07:38Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7447572
- Parents:
- c571f42
- Location:
- kernel/arch/ia32xen/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32xen/src/interrupt.c
rc571f42 rf651e80 89 89 eoi_function(); 90 90 else 91 panic(" no eoi_function\n");91 panic("No eoi_function."); 92 92 93 93 } … … 95 95 static void null_interrupt(int n, istate_t *istate) 96 96 { 97 fault_if_from_uspace(istate, "Unserviced interrupt: %d ", n);98 99 decode_istate(istate); 100 panic("Unserviced interrupt: %d \n", n);97 fault_if_from_uspace(istate, "Unserviced interrupt: %d.", n); 98 99 decode_istate(istate); 100 panic("Unserviced interrupt: %d.", n); 101 101 } 102 102 … … 122 122 return; 123 123 } 124 fault_if_from_uspace(istate, "General protection fault ");124 fault_if_from_uspace(istate, "General protection fault."); 125 125 } 126 126 127 127 decode_istate(istate); 128 panic("General protection fault \n");128 panic("General protection fault."); 129 129 } 130 130 131 131 static void ss_fault(int n, istate_t *istate) 132 132 { 133 fault_if_from_uspace(istate, "Stack fault ");134 135 decode_istate(istate); 136 panic("Stack fault \n");133 fault_if_from_uspace(istate, "Stack fault."); 134 135 decode_istate(istate); 136 panic("Stack fault."); 137 137 } 138 138 … … 145 145 :"=m"(mxcsr) 146 146 ); 147 fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx ",147 fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR: %#zx.", 148 148 (unative_t)mxcsr); 149 149 150 150 decode_istate(istate); 151 151 printf("MXCSR: %#zx\n",(unative_t)(mxcsr)); 152 panic("SIMD FP exception(19) \n");152 panic("SIMD FP exception(19)."); 153 153 } 154 154 … … 158 158 scheduler_fpu_lazy_request(); 159 159 #else 160 fault_if_from_uspace(istate, "FPU fault ");161 panic("FPU fault ");160 fault_if_from_uspace(istate, "FPU fault."); 161 panic("FPU fault."); 162 162 #endif 163 163 } … … 234 234 enable_irqs_function(irqmask); 235 235 else 236 panic(" no enable_irqs_function\n");236 panic("No enable_irqs_function."); 237 237 } 238 238 … … 242 242 disable_irqs_function(irqmask); 243 243 else 244 panic(" no disable_irqs_function\n");244 panic("No disable_irqs_function."); 245 245 } 246 246 -
kernel/arch/ia32xen/src/mm/page.c
rc571f42 rf651e80 67 67 68 68 if (istate->error_word & PFERR_CODE_RSVD) 69 panic("Reserved bit set in page directory. \n");69 panic("Reserved bit set in page directory."); 70 70 71 71 if (istate->error_word & PFERR_CODE_RW) … … 75 75 76 76 if (as_page_fault(page, access, istate) == AS_PF_FAULT) { 77 fault_if_from_uspace(istate, "Page fault: %#x ", page);77 fault_if_from_uspace(istate, "Page fault: %#x.", page); 78 78 79 79 decode_istate(istate); 80 printf("Page fault address: %#x \n", page);81 panic("Page fault \n");80 printf("Page fault address: %#x.\n", page); 81 panic("Page fault."); 82 82 } 83 83 } -
kernel/arch/ia32xen/src/pm.c
rc571f42 rf651e80 169 169 tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC); 170 170 if (!tss_p) 171 panic(" could not allocate TSS\n");171 panic("Cannot allocate TSS."); 172 172 } 173 173 -
kernel/arch/ia32xen/src/smp/smp.c
rc571f42 rf651e80 73 73 l_apic_address = (uintptr_t) frame_alloc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA); 74 74 if (!l_apic_address) 75 panic(" cannot allocate address for l_apic\n");75 panic("Cannot allocate address for l_apic."); 76 76 77 77 io_apic_address = (uintptr_t) frame_alloc(ONE_FRAME, FRAME_ATOMIC | FRAME_KA); 78 78 if (!io_apic_address) 79 panic(" cannot allocate address for io_apic\n");79 panic("Cannot allocate address for io_apic."); 80 80 81 81 if (config.cpu_count > 1) { … … 144 144 */ 145 145 if (!(gdt_new = (struct descriptor *) malloc(GDT_ITEMS * sizeof(struct descriptor), FRAME_ATOMIC))) 146 panic(" couldn't allocate memory for GDT\n");146 panic("Cannot allocate memory for GDT."); 147 147 148 148 memcpy(gdt_new, gdt, GDT_ITEMS * sizeof(struct descriptor));
Note:
See TracChangeset
for help on using the changeset viewer.
