Changeset 98000fb in mainline for kernel/arch/mips32/include
- 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/include
- Files:
-
- 4 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. */
Note:
See TracChangeset
for help on using the changeset viewer.
