Changeset e386cbf in mainline for kernel/arch/sparc64/include/mm
- Timestamp:
- 2006-08-01T15:58:32Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e12ccc5
- Parents:
- b3e8c90
- Location:
- kernel/arch/sparc64/include/mm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/mm/mmu.h
rb3e8c90 re386cbf 104 104 typedef union lsu_cr_reg lsu_cr_reg_t; 105 105 106 #endif /* ! __ASM__ */106 #endif /* !def __ASM__ */ 107 107 108 108 #endif -
kernel/arch/sparc64/include/mm/tlb.h
rb3e8c90 re386cbf 36 36 #define __sparc64_TLB_H__ 37 37 38 39 #define ITLB_ENTRY_COUNT 64 40 #define DTLB_ENTRY_COUNT 64 41 42 #define MEM_CONTEXT_KERNEL 0 43 #define MEM_CONTEXT_TEMP 1 44 45 /** Page sizes. */ 46 #define PAGESIZE_8K 0 47 #define PAGESIZE_64K 1 48 #define PAGESIZE_512K 2 49 #define PAGESIZE_4M 3 50 51 /** Bit width of the TLB-locked portion of kernel address space. */ 52 #define KERNEL_PAGE_WIDTH 22 /* 4M */ 53 54 /* TLB Demap Operation types. */ 55 #define TLB_DEMAP_PAGE 0 56 #define TLB_DEMAP_CONTEXT 1 57 58 #define TLB_DEMAP_TYPE_SHIFT 6 59 60 /* TLB Demap Operation Context register encodings. */ 61 #define TLB_DEMAP_PRIMARY 0 62 #define TLB_DEMAP_SECONDARY 1 63 #define TLB_DEMAP_NUCLEUS 2 64 65 #define TLB_DEMAP_CONTEXT_SHIFT 4 66 67 /* TLB Tag Access shifts */ 68 #define TLB_TAG_ACCESS_CONTEXT_SHIFT 0 69 #define TLB_TAG_ACCESS_VPN_SHIFT 13 70 71 #ifndef __ASM__ 72 38 73 #include <arch/mm/tte.h> 39 74 #include <arch/mm/mmu.h> … … 43 78 #include <arch/types.h> 44 79 #include <typedefs.h> 45 46 #define ITLB_ENTRY_COUNT 6447 #define DTLB_ENTRY_COUNT 6448 49 /** Page sizes. */50 #define PAGESIZE_8K 051 #define PAGESIZE_64K 152 #define PAGESIZE_512K 253 #define PAGESIZE_4M 354 55 /** Bit width of the TLB-locked portion of kernel address space. */56 #define KERNEL_PAGE_WIDTH 22 /* 4M */57 80 58 81 union tlb_context_reg { … … 91 114 typedef union tlb_tag_read_reg tlb_tag_access_reg_t; 92 115 93 /** TLB Demap Operation types. */94 #define TLB_DEMAP_PAGE 095 #define TLB_DEMAP_CONTEXT 196 97 /** TLB Demap Operation Context register encodings. */98 #define TLB_DEMAP_PRIMARY 099 #define TLB_DEMAP_SECONDARY 1100 #define TLB_DEMAP_NUCLEUS 2101 116 102 117 /** TLB Demap Operation Address. */ … … 385 400 da.vpn = pg.vpn; 386 401 387 asi_u64_write(ASI_IMMU_DEMAP, da.value, 0); 402 asi_u64_write(ASI_IMMU_DEMAP, da.value, 0); /* da.value is the address within the ASI */ 388 403 flush(); 389 404 } … … 407 422 da.vpn = pg.vpn; 408 423 409 asi_u64_write(ASI_DMMU_DEMAP, da.value, 0); 424 asi_u64_write(ASI_DMMU_DEMAP, da.value, 0); /* da.value is the address within the ASI */ 410 425 membar(); 411 426 } … … 417 432 extern void dtlb_insert_mapping(uintptr_t page, uintptr_t frame, int pagesize, bool locked, bool cacheable); 418 433 434 #endif /* !def __ASM__ */ 435 419 436 #endif 420 437 -
kernel/arch/sparc64/include/mm/tte.h
rb3e8c90 re386cbf 35 35 #ifndef __sparc64_TTE_H__ 36 36 #define __sparc64_TTE_H__ 37 38 #define TTE_G (1<<0) 39 #define TTE_W (1<<1) 40 #define TTE_P (1<<2) 41 #define TTE_E (1<<3) 42 #define TTE_CV (1<<4) 43 #define TTE_CP (1<<5) 44 #define TTE_L (1<<6) 45 46 #define TTE_V_SHIFT 63 47 #define TTE_SIZE_SHIFT 61 48 49 #ifndef __ASM__ 37 50 38 51 #include <arch/types.h> … … 76 89 typedef union tte_data tte_data_t; 77 90 91 #endif /* !def __ASM__ */ 92 78 93 #endif 79 94
Note:
See TracChangeset
for help on using the changeset viewer.