Changeset 98000fb in mainline for kernel/arch/ppc32/include


Ignore:
Timestamp:
2009-06-03T19:34:45Z (17 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)

Location:
kernel/arch/ppc32/include
Files:
2 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];
  • kernel/arch/ppc32/include/types.h

    r69e68e3 r98000fb  
    4747
    4848typedef uint32_t size_t;
    49 typedef uint32_t count_t;
    50 typedef uint32_t index_t;
    5149
    5250typedef uint32_t uintptr_t;
     
    6159} fncptr_t;
    6260
    63 /**< Formats for uintptr_t, size_t, count_t and index_t */
     61/**< Formats for uintptr_t, size_t */
    6462#define PRIp "x"
    6563#define PRIs "u"
    66 #define PRIc "u"
    67 #define PRIi "u"
    6864
    6965/**< Formats for (u)int8_t, (u)int16_t, (u)int32_t, (u)int64_t and (u)native_t */
Note: See TracChangeset for help on using the changeset viewer.