Changeset f651e80 in mainline for kernel/arch/ia32/src
- 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/ia32/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/drivers/vesa.c
rc571f42 rf651e80 84 84 break; 85 85 default: 86 panic("Unsupported bits per pixel ");86 panic("Unsupported bits per pixel."); 87 87 } 88 88 -
kernel/arch/ia32/src/interrupt.c
rc571f42 rf651e80 90 90 eoi_function(); 91 91 else 92 panic(" no eoi_function\n");92 panic("No eoi_function."); 93 93 94 94 } … … 96 96 static void null_interrupt(int n, istate_t *istate) 97 97 { 98 fault_if_from_uspace(istate, "Unserviced interrupt: %d ", n);99 100 decode_istate(istate); 101 panic("Unserviced interrupt: %d \n", n);98 fault_if_from_uspace(istate, "Unserviced interrupt: %d.", n); 99 100 decode_istate(istate); 101 panic("Unserviced interrupt: %d.", n); 102 102 } 103 103 … … 123 123 return; 124 124 } 125 fault_if_from_uspace(istate, "General protection fault ");125 fault_if_from_uspace(istate, "General protection fault."); 126 126 } 127 127 128 128 decode_istate(istate); 129 panic("General protection fault \n");129 panic("General protection fault."); 130 130 } 131 131 132 132 static void ss_fault(int n __attribute__((unused)), istate_t *istate) 133 133 { 134 fault_if_from_uspace(istate, "Stack fault ");135 136 decode_istate(istate); 137 panic("Stack fault \n");134 fault_if_from_uspace(istate, "Stack fault."); 135 136 decode_istate(istate); 137 panic("Stack fault."); 138 138 } 139 139 … … 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: %#lx\n", 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/ia32/src/mm/page.c
rc571f42 rf651e80 80 80 { 81 81 if (last_frame + ALIGN_UP(size, PAGE_SIZE) > KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) 82 panic("Unable to map physical memory %p (%d bytes) ", physaddr, size)82 panic("Unable to map physical memory %p (%d bytes).", physaddr, size) 83 83 84 84 uintptr_t virtaddr = PA2KA(last_frame); … … 102 102 103 103 if (istate->error_word & PFERR_CODE_RSVD) 104 panic("Reserved bit set in page directory. \n");104 panic("Reserved bit set in page directory."); 105 105 106 106 if (istate->error_word & PFERR_CODE_RW) … … 110 110 111 111 if (as_page_fault(page, access, istate) == AS_PF_FAULT) { 112 fault_if_from_uspace(istate, "Page fault: %#x ", page);112 fault_if_from_uspace(istate, "Page fault: %#x.", page); 113 113 114 114 decode_istate(istate); 115 115 printf("page fault address: %#lx\n", page); 116 panic(" page fault\n");116 panic("Page fault."); 117 117 } 118 118 } -
kernel/arch/ia32/src/pm.c
rc571f42 rf651e80 199 199 tss_p = (tss_t *) malloc(sizeof(tss_t), FRAME_ATOMIC); 200 200 if (!tss_p) 201 panic(" could not allocate TSS\n");201 panic("Cannot allocate TSS."); 202 202 } 203 203 -
kernel/arch/ia32/src/smp/smp.c
rc571f42 rf651e80 76 76 FRAME_ATOMIC | FRAME_KA); 77 77 if (!l_apic_address) 78 panic(" cannot allocate address for l_apic\n");78 panic("Cannot allocate address for l_apic."); 79 79 80 80 io_apic_address = (uintptr_t) frame_alloc(ONE_FRAME, 81 81 FRAME_ATOMIC | FRAME_KA); 82 82 if (!io_apic_address) 83 panic(" cannot allocate address for io_apic\n");83 panic("Cannot allocate address for io_apic."); 84 84 85 85 if (config.cpu_count > 1) { … … 158 158 sizeof(struct descriptor), FRAME_ATOMIC | FRAME_LOW_4_GiB); 159 159 if (!gdt_new) 160 panic(" couldn't allocate memory for GDT\n");160 panic("Cannot allocate memory for GDT."); 161 161 162 162 memcpy(gdt_new, gdt, GDT_ITEMS * sizeof(struct descriptor));
Note:
See TracChangeset
for help on using the changeset viewer.