Changeset 98000fb in mainline for kernel/arch/mips32
- Timestamp:
- 2009-06-03T19:34:45Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- Location:
- kernel/arch/mips32
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/arch.h
r69e68e3 r98000fb 43 43 #include <typedefs.h> 44 44 45 extern count_t cpu_count;45 extern size_t cpu_count; 46 46 47 47 typedef struct { -
kernel/arch/mips32/include/debugger.h
r69e68e3 r98000fb 54 54 unative_t nextinstruction; /**< Original instruction following break */ 55 55 int flags; /**< Flags regarding breakpoint */ 56 count_t counter;56 size_t counter; 57 57 void (*bkfunc)(void *b, istate_t *istate); 58 58 } bpinfo_t; -
kernel/arch/mips32/include/mm/page.h
r69e68e3 r98000fb 113 113 /* Get PTE flags accessors for each level. */ 114 114 #define GET_PTL1_FLAGS_ARCH(ptl0, i) \ 115 get_pt_flags((pte_t *) (ptl0), ( index_t) (i))115 get_pt_flags((pte_t *) (ptl0), (size_t) (i)) 116 116 #define GET_PTL2_FLAGS_ARCH(ptl1, i) \ 117 117 PAGE_PRESENT … … 119 119 PAGE_PRESENT 120 120 #define GET_FRAME_FLAGS_ARCH(ptl3, i) \ 121 get_pt_flags((pte_t *) (ptl3), ( index_t) (i))121 get_pt_flags((pte_t *) (ptl3), (size_t) (i)) 122 122 123 123 /* Set PTE flags accessors for each level. */ 124 124 #define SET_PTL1_FLAGS_ARCH(ptl0, i, x) \ 125 set_pt_flags((pte_t *) (ptl0), ( index_t) (i), (x))125 set_pt_flags((pte_t *) (ptl0), (size_t) (i), (x)) 126 126 #define SET_PTL2_FLAGS_ARCH(ptl1, i, x) 127 127 #define SET_PTL3_FLAGS_ARCH(ptl2, i, x) 128 128 #define SET_FRAME_FLAGS_ARCH(ptl3, i, x) \ 129 set_pt_flags((pte_t *) (ptl3), ( index_t) (i), (x))129 set_pt_flags((pte_t *) (ptl3), (size_t) (i), (x)) 130 130 131 131 /* Last-level info macros. */ … … 141 141 #include <arch/exception.h> 142 142 143 static inline int get_pt_flags(pte_t *pt, index_t i)143 static inline int get_pt_flags(pte_t *pt, size_t i) 144 144 { 145 145 pte_t *p = &pt[i]; … … 154 154 } 155 155 156 static inline void set_pt_flags(pte_t *pt, index_t i, int flags)156 static inline void set_pt_flags(pte_t *pt, size_t i, int flags) 157 157 { 158 158 pte_t *p = &pt[i]; -
kernel/arch/mips32/include/types.h
r69e68e3 r98000fb 47 47 48 48 typedef uint32_t size_t; 49 typedef uint32_t count_t;50 typedef uint32_t index_t;51 49 52 50 typedef uint32_t uintptr_t; … … 63 61 #define PRIp "x" /**< Format for uintptr_t. */ 64 62 #define PRIs "u" /**< Format for size_t. */ 65 #define PRIc "u" /**< Format for count_t. */66 #define PRIi "u" /**< Format for index_t. */67 63 68 64 #define PRId8 "d" /**< Format for int8_t. */ -
kernel/arch/mips32/src/mips32.c
r69e68e3 r98000fb 77 77 uintptr_t supervisor_sp __attribute__ ((section (".text"))); 78 78 79 count_t cpu_count = 0;79 size_t cpu_count = 0; 80 80 81 81 /** Performs mips32-specific initialization before main_bsp() is called. */ … … 85 85 init.cnt = bootinfo->cnt; 86 86 87 count_t i;87 size_t i; 88 88 for (i = 0; i < min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); i++) { 89 89 init.tasks[i].addr = bootinfo->tasks[i].addr; -
kernel/arch/mips32/src/mm/frame.c
r69e68e3 r98000fb 63 63 } phys_region_t; 64 64 65 static count_t phys_regions_count = 0;65 static size_t phys_regions_count = 0; 66 66 static phys_region_t phys_regions[MAX_REGIONS]; 67 67 … … 120 120 /* Init tasks */ 121 121 bool safe = true; 122 count_t i;122 size_t i; 123 123 for (i = 0; i < init.cnt; i++) 124 124 if (overlaps(frame << ZERO_PAGE_WIDTH, ZERO_PAGE_SIZE, … … 175 175 cp0_entry_hi_write(0); 176 176 177 count_t i;177 size_t i; 178 178 for (i = 0; i < TLB_ENTRY_COUNT; i++) { 179 179 cp0_index_write(i); … … 252 252 printf("---------- ----------\n"); 253 253 254 count_t i;254 size_t i; 255 255 for (i = 0; i < phys_regions_count; i++) { 256 256 printf("%#010x %10u\n", -
kernel/arch/mips32/src/mm/tlb.c
r69e68e3 r98000fb 561 561 * @param cnt Number of entries to invalidate. 562 562 */ 563 void tlb_invalidate_pages(asid_t asid, uintptr_t page, count_t cnt)563 void tlb_invalidate_pages(asid_t asid, uintptr_t page, size_t cnt) 564 564 { 565 565 unsigned int i;
Note:
See TracChangeset
for help on using the changeset viewer.