Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d5f99e6 in mainline


Ignore:
Timestamp:
2012-04-01T19:04:19Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
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.