Changeset f6f22cdb in mainline for boot/arch/sparc32/include/mm.h
- Timestamp:
- 2013-12-27T18:45:56Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32e8cd1
- Parents:
- e47ed05
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc32/include/mm.h
re47ed05 rf6f22cdb 39 39 */ 40 40 41 #ifndef BOOT_sparc32_ _MM_H42 #define BOOT_sparc32_ _MM_H41 #ifndef BOOT_sparc32_MM_H 42 #define BOOT_sparc32_MM_H 43 43 44 44 #include <typedefs.h> 45 45 46 #define PAGE_SIZE(1 << 12)46 #define PAGE_SIZE (1 << 12) 47 47 48 48 typedef struct { … … 54 54 55 55 typedef struct { 56 unsigned int ppn : 24;57 unsigned int cacheable : 1;58 unsigned int modified : 1;59 unsigned int referenced : 1;60 unsigned int acc : 3;61 unsigned int et : 2;56 unsigned int ppn : 24; 57 unsigned int cacheable : 1; 58 unsigned int modified : 1; 59 unsigned int referenced : 1; 60 unsigned int acc : 3; 61 unsigned int et : 2; 62 62 } __attribute__((packed)) pte_t; 63 63 64 64 extern pte_t boot_pt[PTL0_ENTRIES]; 65 65 66 void mmu_init(void);66 extern void mmu_init(void); 67 67 68 #define PTE_ET_DESCRIPTOR169 #define PTE_ET_ENTRY270 #define PTE_ACC_RWX371 #define MMU_CONTROL_EN(1 << 0)68 #define PTE_ET_DESCRIPTOR 1 69 #define PTE_ET_ENTRY 2 70 #define PTE_ACC_RWX 3 71 #define MMU_CONTROL_EN (1 << 0) 72 72 73 73 #endif
Note:
See TracChangeset
for help on using the changeset viewer.