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


Ignore:
Timestamp:
2009-06-03T19:34:45Z (16 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/ia32/include/mm/page.h

    r69e68e3 r98000fb  
    9696/* Get PTE flags accessors for each level. */
    9797#define GET_PTL1_FLAGS_ARCH(ptl0, i) \
    98         get_pt_flags((pte_t *) (ptl0), (index_t) (i))
     98        get_pt_flags((pte_t *) (ptl0), (size_t) (i))
    9999#define GET_PTL2_FLAGS_ARCH(ptl1, i) \
    100100        PAGE_PRESENT
     
    102102        PAGE_PRESENT
    103103#define GET_FRAME_FLAGS_ARCH(ptl3, i) \
    104         get_pt_flags((pte_t *) (ptl3), (index_t) (i))
     104        get_pt_flags((pte_t *) (ptl3), (size_t) (i))
    105105
    106106/* Set PTE flags accessors for each level. */
    107107#define SET_PTL1_FLAGS_ARCH(ptl0, i, x) \
    108         set_pt_flags((pte_t *) (ptl0), (index_t) (i), (x))
     108        set_pt_flags((pte_t *) (ptl0), (size_t) (i), (x))
    109109#define SET_PTL2_FLAGS_ARCH(ptl1, i, x)
    110110#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)
    111111#define SET_FRAME_FLAGS_ARCH(ptl3, i, x) \
    112         set_pt_flags((pte_t *) (ptl3), (index_t) (i), (x))
     112        set_pt_flags((pte_t *) (ptl3), (size_t) (i), (x))
    113113
    114114/* Macros for querying the last level entries. */
     
    146146#define PFERR_CODE_RSVD         (1 << 3)       
    147147
    148 static inline int get_pt_flags(pte_t *pt, index_t i)
     148static inline int get_pt_flags(pte_t *pt, size_t i)
    149149{
    150150        pte_t *p = &pt[i];
     
    159159}
    160160
    161 static inline void set_pt_flags(pte_t *pt, index_t i, int flags)
     161static inline void set_pt_flags(pte_t *pt, size_t i, int flags)
    162162{
    163163        pte_t *p = &pt[i];
Note: See TracChangeset for help on using the changeset viewer.