Changeset 3526da33 in mainline


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().

Location:
arch
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/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
  • arch/ia32/include/mm/page.h

    rf4a61ef r3526da33  
    3737#define PAGE_SIZE       FRAME_SIZE
    3838
    39 #define KA2PA(x)        ((x) - 0x80000000)
    40 #define PA2KA(x)        ((x) + 0x80000000)
     39#define KA2PA(x)        (((__address) (x)) - 0x80000000)
     40#define PA2KA(x)        (((__address) (x)) + 0x80000000)
    4141
    4242/*
  • arch/ia64/include/mm/page.h

    rf4a61ef r3526da33  
    3535#define PAGE_SIZE       FRAME_SIZE
    3636
    37 #define KA2PA(x)        ((x)-0x8000000000000000)
    38 #define PA2KA(x)        ((x)+0x8000000000000000)
     37#define KA2PA(x)        (((__address) (x))-0x8000000000000000)
     38#define PA2KA(x)        (((__address) (x))+0x8000000000000000)
    3939
    4040#define page_arch_init()        ;
  • arch/mips/include/mm/page.h

    rf4a61ef r3526da33  
    3838#define PAGE_SIZE       FRAME_SIZE
    3939
    40 #define KA2PA(x)        ((x) - 0x80000000)
    41 #define PA2KA(x)        ((x) + 0x80000000)
     40#define KA2PA(x)        (((__address) (x)) - 0x80000000)
     41#define PA2KA(x)        (((__address) (x)) + 0x80000000)
    4242
    4343/*
  • 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.