Changeset 8cee705 in mainline
- Timestamp:
- 2006-10-19T22:58:53Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- deb14fb
- Parents:
- f0450658
- Location:
- kernel/arch/sparc64
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/mm/tlb.h
rf0450658 r8cee705 430 430 extern void dtlb_insert_mapping(uintptr_t page, uintptr_t frame, int pagesize, bool locked, bool cacheable); 431 431 432 extern void dump_sfsr_and_sfar(void); 433 432 434 #endif /* !def __ASM__ */ 433 435 -
kernel/arch/sparc64/src/drivers/fhc.c
rf0450658 r8cee705 41 41 42 42 #include <arch/drivers/fhc.h> 43 #include <arch/trap/interrupt.h> 43 44 #include <arch/mm/page.h> 44 45 #include <mm/slab.h> … … 46 47 #include <typedefs.h> 47 48 #include <genarch/ofw/ofw_tree.h> 48 #include <genarch/kbd/z8530.h>49 49 50 50 fhc_t *central_fhc = NULL; … … 95 95 switch (inr) { 96 96 case FHC_UART_INR: 97 fhc->uart_imap[FHC_UART_ICLR] = 0x0; 98 fhc->uart_imap[FHC_UART_IMAP] = 0x80000000; 97 fhc->uart_imap[FHC_UART_IMAP] |= IMAP_V_MASK; 99 98 break; 100 99 default: -
kernel/arch/sparc64/src/drivers/pci.c
rf0450658 r8cee705 98 98 void pci_sabre_enable_interrupt(pci_t *pci, int inr) 99 99 { 100 pci->reg[PCI_SABRE_ICLR_BASE + (inr & INO_MASK)] = 0;101 100 pci->reg[PCI_SABRE_IMAP_BASE + (inr & INO_MASK)] |= IMAP_V_MASK; 102 101 } -
kernel/arch/sparc64/src/mm/tlb.c
rf0450658 r8cee705 75 75 */ 76 76 tlb_invalidate_all(); 77 78 /* 79 * Clear both SFSRs. 80 */ 81 dtlb_sfsr_write(0); 82 itlb_sfsr_write(0); 77 83 } 78 84 … … 354 360 } 355 361 362 void dump_sfsr_and_sfar(void) 363 { 364 tlb_sfsr_reg_t sfsr; 365 uintptr_t sfar; 366 367 sfsr.value = dtlb_sfsr_read(); 368 sfar = dtlb_sfar_read(); 369 370 printf("DTLB SFSR: asi=%#x, ft=%#x, e=%d, ct=%d, pr=%d, w=%d, ow=%d, fv=%d\n", 371 sfsr.asi, sfsr.ft, sfsr.e, sfsr.ct, sfsr.pr, sfsr.w, sfsr.ow, sfsr.fv); 372 printf("DTLB SFAR: address=%p\n", sfar); 373 374 dtlb_sfsr_write(0); 375 } 376 356 377 /** Invalidate all unlocked ITLB and DTLB entries. */ 357 378 void tlb_invalidate_all(void) -
kernel/arch/sparc64/src/trap/exception.c
rf0450658 r8cee705 35 35 36 36 #include <arch/trap/exception.h> 37 #include <arch/mm/tlb.h> 37 38 #include <arch/interrupt.h> 38 39 #include <interrupt.h> … … 157 158 fault_if_from_uspace(istate, "%s\n", __FUNCTION__); 158 159 dump_istate(istate); 160 dump_sfsr_and_sfar(); 159 161 panic("%s\n", __FUNCTION__); 160 162 }
Note:
See TracChangeset
for help on using the changeset viewer.