Changeset 7f1c620 in mainline for arch/ppc64/include/mm/page.h


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc64/include/mm/page.h

    r991779c5 r7f1c620  
    4444
    4545#ifndef __ASM__
    46 #       define KA2PA(x) (((__address) (x)) - 0x80000000)
    47 #       define PA2KA(x) (((__address) (x)) + 0x80000000)
     46#       define KA2PA(x) (((uintptr_t) (x)) - 0x80000000)
     47#       define PA2KA(x) (((uintptr_t) (x)) + 0x80000000)
    4848#else
    4949#       define KA2PA(x) ((x) - 0x80000000)
     
    9595#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)        set_pt_flags((pte_t *) (ptl3), (index_t) (i), (x))
    9696
    97 #define PTE_VALID_ARCH(pte)                     (*((__u32 *) (pte)) != 0)
     97#define PTE_VALID_ARCH(pte)                     (*((uint32_t *) (pte)) != 0)
    9898#define PTE_PRESENT_ARCH(pte)                   ((pte)->p != 0)
    99 #define PTE_GET_FRAME_ARCH(pte)                 ((__address) ((pte)->pfn << 12))
     99#define PTE_GET_FRAME_ARCH(pte)                 ((uintptr_t) ((pte)->pfn << 12))
    100100#define PTE_WRITABLE_ARCH(pte)                  1
    101101#define PTE_EXECUTABLE_ARCH(pte)                1
Note: See TracChangeset for help on using the changeset viewer.