Changeset 3526da33 in mainline for arch/ppc/include/mm/page.h


Ignore:
Timestamp:
2005-08-20T22:16:40Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a8f9a82
Parents:
f4a61ef
Message:

For each architecture, add an extra type cast of x to address to both KA2PA() and PA2KA().

File:
1 edited

Legend:

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

    rf4a61ef r3526da33  
    3636#define PAGE_SIZE       FRAME_SIZE
    3737
    38 #define KA2PA(x)        ((x) - 0x80000000)
    39 #define PA2KA(x)        ((x) + 0x80000000)
     38#define KA2PA(x)        (((__address) (x)) - 0x80000000)
     39#define PA2KA(x)        (((__address) (x)) + 0x80000000)
    4040
    4141#define PTL0_INDEX_ARCH(vaddr)          0
Note: See TracChangeset for help on using the changeset viewer.