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


Ignore:
Timestamp:
2009-06-03T19:34:45Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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/mips32/include/mm/page.h

    r69e68e3 r98000fb  
    113113/* Get PTE flags accessors for each level. */
    114114#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))
    116116#define GET_PTL2_FLAGS_ARCH(ptl1, i) \
    117117        PAGE_PRESENT
     
    119119        PAGE_PRESENT
    120120#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))
    122122
    123123/* Set PTE flags accessors for each level. */
    124124#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))
    126126#define SET_PTL2_FLAGS_ARCH(ptl1, i, x)
    127127#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)
    128128#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))
    130130
    131131/* Last-level info macros. */
     
    141141#include <arch/exception.h>
    142142
    143 static inline int get_pt_flags(pte_t *pt, index_t i)
     143static inline int get_pt_flags(pte_t *pt, size_t i)
    144144{
    145145        pte_t *p = &pt[i];
     
    154154}
    155155
    156 static inline void set_pt_flags(pte_t *pt, index_t i, int flags)
     156static inline void set_pt_flags(pte_t *pt, size_t i, int flags)
    157157{
    158158        pte_t *p = &pt[i];
Note: See TracChangeset for help on using the changeset viewer.