Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 98000fb in mainline for kernel/arch/arm32/include/mm/page.h


Ignore:
Timestamp:
2009-06-03T19:34:45Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
301ff30
Parents:
69e68e3
Message:

remove redundant index_t and count_t types (which were always quite ambiguous and not actually needed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/mm/page.h

    r69e68e3 r98000fb  
    9595/* Get PTE flags accessors for each level. */
    9696#define GET_PTL1_FLAGS_ARCH(ptl0, i) \
    97         get_pt_level0_flags((pte_level0_t *) (ptl0), (index_t) (i))
     97        get_pt_level0_flags((pte_level0_t *) (ptl0), (size_t) (i))
    9898#define GET_PTL2_FLAGS_ARCH(ptl1, i) \
    9999        PAGE_PRESENT
     
    101101        PAGE_PRESENT
    102102#define GET_FRAME_FLAGS_ARCH(ptl3, i) \
    103         get_pt_level1_flags((pte_level1_t *) (ptl3), (index_t) (i))
     103        get_pt_level1_flags((pte_level1_t *) (ptl3), (size_t) (i))
    104104
    105105/* Set PTE flags accessors for each level. */
    106106#define SET_PTL1_FLAGS_ARCH(ptl0, i, x) \
    107         set_pt_level0_flags((pte_level0_t *) (ptl0), (index_t) (i), (x))
     107        set_pt_level0_flags((pte_level0_t *) (ptl0), (size_t) (i), (x))
    108108#define SET_PTL2_FLAGS_ARCH(ptl1, i, x)
    109109#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)
    110110#define SET_FRAME_FLAGS_ARCH(ptl3, i, x) \
    111         set_pt_level1_flags((pte_level1_t *) (ptl3), (index_t) (i), (x))
     111        set_pt_level1_flags((pte_level1_t *) (ptl3), (size_t) (i), (x))
    112112
    113113/* Macros for querying the last-level PTE entries. */
     
    205205 *  @param i      Index of the entry to return.
    206206 */
    207 static inline int get_pt_level0_flags(pte_level0_t *pt, index_t i)
     207static inline int get_pt_level0_flags(pte_level0_t *pt, size_t i)
    208208{
    209209        pte_level0_t *p = &pt[i];
     
    220220 *  @param i      Index of the entry to return.
    221221 */
    222 static inline int get_pt_level1_flags(pte_level1_t *pt, index_t i)
     222static inline int get_pt_level1_flags(pte_level1_t *pt, size_t i)
    223223{
    224224        pte_level1_t *p = &pt[i];
     
    245245 *  @param flags  new flags
    246246 */
    247 static inline void set_pt_level0_flags(pte_level0_t *pt, index_t i, int flags)
     247static inline void set_pt_level0_flags(pte_level0_t *pt, size_t i, int flags)
    248248{
    249249        pte_level0_t *p = &pt[i];
     
    273273 *  @param flags  New flags.
    274274 */ 
    275 static inline void set_pt_level1_flags(pte_level1_t *pt, index_t i, int flags)
     275static inline void set_pt_level1_flags(pte_level1_t *pt, size_t i, int flags)
    276276{
    277277        pte_level1_t *p = &pt[i];
Note: See TracChangeset for help on using the changeset viewer.