Changeset d5f99e6 in mainline for boot/arch/arm32/include/arch.h


Ignore:
Timestamp:
2012-04-01T19:04:19Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a44ae3dd
Parents:
81f70b4
Message:

boot, arm32: Cleanup PA offset macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/include/arch.h

    r81f70b4 rd5f99e6  
    5151
    5252#ifdef MACHINE_beagleboardxm
    53         #define PA2KA(addr)  (addr)
     53        #define PA_OFFSET 0
    5454#else
     55        #define PA_OFFSET 0x80000000
     56#endif
    5557
    5658#ifndef __ASM__
    57         #define PA2KA(addr)  (((uintptr_t) (addr)) + 0x80000000)
     59        #define PA2KA(addr)  (((uintptr_t) (addr)) + PA_OFFSET)
    5860#else
    59         #define PA2KA(addr)  ((addr) + 0x80000000)
     61        #define PA2KA(addr)  ((addr) + PA_OFFSET)
    6062#endif
    6163
    62 #endif
    6364
    6465#endif
Note: See TracChangeset for help on using the changeset viewer.