Changeset 7f1c620 in mainline for arch/mips32/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/mips32/include/mm/page.h

    r991779c5 r7f1c620  
    4242
    4343#ifndef __ASM__
    44 #  define KA2PA(x)      (((__address) (x)) - 0x80000000)
    45 #  define PA2KA(x)      (((__address) (x)) + 0x80000000)
     44#  define KA2PA(x)      (((uintptr_t) (x)) - 0x80000000)
     45#  define PA2KA(x)      (((uintptr_t) (x)) + 0x80000000)
    4646#else
    4747#  define KA2PA(x)      ((x) - 0x80000000)
     
    101101#define SET_FRAME_FLAGS_ARCH(ptl3, i, x)        set_pt_flags((pte_t *)(ptl3), (index_t)(i), (x))
    102102
    103 #define PTE_VALID_ARCH(pte)                     (*((__u32 *) (pte)) != 0)
     103#define PTE_VALID_ARCH(pte)                     (*((uint32_t *) (pte)) != 0)
    104104#define PTE_PRESENT_ARCH(pte)                   ((pte)->p != 0)
    105105#define PTE_GET_FRAME_ARCH(pte)                 ((pte)->pfn<<12)
Note: See TracChangeset for help on using the changeset viewer.