Changeset 98000fb in mainline for kernel/arch/amd64/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/amd64/include/mm/page.h

    r69e68e3 r98000fb  
    113113        (write_cr3((uintptr_t) (ptl0)))
    114114#define SET_PTL1_ADDRESS_ARCH(ptl0, i, a) \
    115         set_pt_addr((pte_t *) (ptl0), (index_t) (i), a)
     115        set_pt_addr((pte_t *) (ptl0), (size_t) (i), a)
    116116#define SET_PTL2_ADDRESS_ARCH(ptl1, i, a) \
    117         set_pt_addr((pte_t *) (ptl1), (index_t) (i), a)
     117        set_pt_addr((pte_t *) (ptl1), (size_t) (i), a)
    118118#define SET_PTL3_ADDRESS_ARCH(ptl2, i, a) \
    119         set_pt_addr((pte_t *) (ptl2), (index_t) (i), a)
     119        set_pt_addr((pte_t *) (ptl2), (size_t) (i), a)
    120120#define SET_FRAME_ADDRESS_ARCH(ptl3, i, a) \
    121         set_pt_addr((pte_t *) (ptl3), (index_t) (i), a)
     121        set_pt_addr((pte_t *) (ptl3), (size_t) (i), a)
    122122
    123123/* Get PTE flags accessors for each level. */
    124124#define GET_PTL1_FLAGS_ARCH(ptl0, i) \
    125         get_pt_flags((pte_t *) (ptl0), (index_t) (i))
     125        get_pt_flags((pte_t *) (ptl0), (size_t) (i))
    126126#define GET_PTL2_FLAGS_ARCH(ptl1, i) \
    127         get_pt_flags((pte_t *) (ptl1), (index_t) (i))
     127        get_pt_flags((pte_t *) (ptl1), (size_t) (i))
    128128#define GET_PTL3_FLAGS_ARCH(ptl2, i) \
    129         get_pt_flags((pte_t *) (ptl2), (index_t) (i))
     129        get_pt_flags((pte_t *) (ptl2), (size_t) (i))
    130130#define GET_FRAME_FLAGS_ARCH(ptl3, i) \
    131         get_pt_flags((pte_t *) (ptl3), (index_t) (i))
     131        get_pt_flags((pte_t *) (ptl3), (size_t) (i))
    132132
    133133/* Set PTE flags accessors for each level. */
    134134#define SET_PTL1_FLAGS_ARCH(ptl0, i, x) \
    135         set_pt_flags((pte_t *) (ptl0), (index_t) (i), (x))
     135        set_pt_flags((pte_t *) (ptl0), (size_t) (i), (x))
    136136#define SET_PTL2_FLAGS_ARCH(ptl1, i, x) \
    137         set_pt_flags((pte_t *) (ptl1), (index_t) (i), (x))
     137        set_pt_flags((pte_t *) (ptl1), (size_t) (i), (x))
    138138#define SET_PTL3_FLAGS_ARCH(ptl2, i, x) \
    139         set_pt_flags((pte_t *) (ptl2), (index_t) (i), (x))
     139        set_pt_flags((pte_t *) (ptl2), (size_t) (i), (x))
    140140#define SET_FRAME_FLAGS_ARCH(ptl3, i, x) \
    141         set_pt_flags((pte_t *) (ptl3), (index_t) (i), (x))
     141        set_pt_flags((pte_t *) (ptl3), (size_t) (i), (x))
    142142
    143143/* Macros for querying the last-level PTE entries. */
     
    177177#define PFERR_CODE_ID           (1 << 4)
    178178
    179 static inline int get_pt_flags(pte_t *pt, index_t i)
     179static inline int get_pt_flags(pte_t *pt, size_t i)
    180180{
    181181        pte_t *p = &pt[i];
     
    190190}
    191191
    192 static inline void set_pt_addr(pte_t *pt, index_t i, uintptr_t a)
     192static inline void set_pt_addr(pte_t *pt, size_t i, uintptr_t a)
    193193{
    194194        pte_t *p = &pt[i];
     
    198198}
    199199
    200 static inline void set_pt_flags(pte_t *pt, index_t i, int flags)
     200static inline void set_pt_flags(pte_t *pt, size_t i, int flags)
    201201{
    202202        pte_t *p = &pt[i];
Note: See TracChangeset for help on using the changeset viewer.