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

    r69e68e3 r98000fb  
    103103/* Get PTE flags accessors for each level. */
    104104#define GET_PTL1_FLAGS_ARCH(ptl0, i) \
    105         get_pt_flags((pte_t *) (ptl0), (index_t) (i))
     105        get_pt_flags((pte_t *) (ptl0), (size_t) (i))
    106106#define GET_PTL2_FLAGS_ARCH(ptl1, i) \
    107107        PAGE_PRESENT
     
    109109        PAGE_PRESENT
    110110#define GET_FRAME_FLAGS_ARCH(ptl3, i) \
    111         get_pt_flags((pte_t *) (ptl3), (index_t) (i))
     111        get_pt_flags((pte_t *) (ptl3), (size_t) (i))
    112112
    113113/* Set PTE flags accessors for each level. */
    114114#define SET_PTL1_FLAGS_ARCH(ptl0, i, x) \
    115         set_pt_flags((pte_t *) (ptl0), (index_t) (i), (x))
     115        set_pt_flags((pte_t *) (ptl0), (size_t) (i), (x))
    116116#define SET_PTL2_FLAGS_ARCH(ptl1, i, x)
    117117#define SET_PTL3_FLAGS_ARCH(ptl2, i, x)
    118118#define SET_FRAME_FLAGS_ARCH(ptl3, i, x) \
    119         set_pt_flags((pte_t *) (ptl3), (index_t) (i), (x))
     119        set_pt_flags((pte_t *) (ptl3), (size_t) (i), (x))
    120120
    121121/* Macros for querying the last-level PTEs. */
     
    131131#include <arch/interrupt.h>
    132132
    133 static inline int get_pt_flags(pte_t *pt, index_t i)
     133static inline int get_pt_flags(pte_t *pt, size_t i)
    134134{
    135135        pte_t *p = &pt[i];
     
    144144}
    145145
    146 static inline void set_pt_flags(pte_t *pt, index_t i, int flags)
     146static inline void set_pt_flags(pte_t *pt, size_t i, int flags)
    147147{
    148148        pte_t *p = &pt[i];
Note: See TracChangeset for help on using the changeset viewer.