Changeset f651e80 in mainline for kernel/arch/amd64/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/amd64/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/interrupt.c
rc571f42 rf651e80 95 95 eoi_function(); 96 96 else 97 panic(" no eoi_function\n");97 panic("No eoi_function."); 98 98 99 99 } … … 101 101 static void null_interrupt(int n, istate_t *istate) 102 102 { 103 fault_if_from_uspace(istate, "Unserviced interrupt: %d ", n);103 fault_if_from_uspace(istate, "Unserviced interrupt: %d.", n); 104 104 decode_istate(n, istate); 105 panic("Unserviced interrupt \n");105 panic("Unserviced interrupt."); 106 106 } 107 107 … … 127 127 return; 128 128 } 129 fault_if_from_uspace(istate, "General protection fault ");129 fault_if_from_uspace(istate, "General protection fault."); 130 130 } 131 131 132 132 decode_istate(n, istate); 133 panic("General protection fault \n");133 panic("General protection fault."); 134 134 } 135 135 136 136 static void ss_fault(int n, istate_t *istate) 137 137 { 138 fault_if_from_uspace(istate, "Stack fault ");138 fault_if_from_uspace(istate, "Stack fault."); 139 139 decode_istate(n, istate); 140 panic("Stack fault \n");140 panic("Stack fault."); 141 141 } 142 142 … … 146 146 scheduler_fpu_lazy_request(); 147 147 #else 148 fault_if_from_uspace(istate, "FPU fault ");149 panic("FPU fault ");148 fault_if_from_uspace(istate, "FPU fault."); 149 panic("FPU fault."); 150 150 #endif 151 151 } … … 222 222 enable_irqs_function(irqmask); 223 223 else 224 panic(" no enable_irqs_function\n");224 panic("No enable_irqs_function."); 225 225 } 226 226 … … 230 230 disable_irqs_function(irqmask); 231 231 else 232 panic(" no disable_irqs_function\n");232 panic("No disable_irqs_function."); 233 233 } 234 234 -
kernel/arch/amd64/src/mm/page.c
rc571f42 rf651e80 181 181 182 182 if (istate->error_word & PFERR_CODE_RSVD) 183 panic("Reserved bit set in page table entry. \n");183 panic("Reserved bit set in page table entry."); 184 184 185 185 if (istate->error_word & PFERR_CODE_RW) … … 191 191 192 192 if (as_page_fault(page, access, istate) == AS_PF_FAULT) { 193 fault_if_from_uspace(istate, "Page fault: %#x ", page);193 fault_if_from_uspace(istate, "Page fault: %#x.", page); 194 194 195 195 decode_istate(n, istate); 196 printf("Page fault address: %llx \n", page);197 panic("Page fault \n");196 printf("Page fault address: %llx.\n", page); 197 panic("Page fault."); 198 198 } 199 199 } … … 203 203 { 204 204 if (last_frame + ALIGN_UP(size, PAGE_SIZE) > KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) 205 panic("Unable to map physical memory %p (%d bytes) ", physaddr, size)205 panic("Unable to map physical memory %p (%d bytes).", physaddr, size) 206 206 207 207 uintptr_t virtaddr = PA2KA(last_frame); -
kernel/arch/amd64/src/pm.c
rc571f42 rf651e80 210 210 tss_p = (struct tss *) malloc(sizeof(tss_t), FRAME_ATOMIC); 211 211 if (!tss_p) 212 panic(" could not allocate TSS\n");212 panic("Cannot allocate TSS."); 213 213 } 214 214
Note:
See TracChangeset
for help on using the changeset viewer.