Ignore:
File:
1 edited

Legend:

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

    rb7e41ac rd969a9a  
    4242#ifdef MACHINE_gta02
    4343#define BOOT_BASE       0x30008000
    44 #elif defined MACHINE_beagleboardxm
    45 #define BOOT_BASE       0x80000000
    46 #elif defined MACHINE_beaglebone
    47 #define BOOT_BASE       0x80000000
    4844#else
    4945#define BOOT_BASE       0x00000000
     
    5248#define BOOT_OFFSET     (BOOT_BASE + 0xa00000)
    5349
    54 #ifdef MACHINE_beagleboardxm
    55         #define PA_OFFSET 0
    56 #elif defined MACHINE_beaglebone
    57         #define PA_OFFSET 0
     50#ifndef __ASM__
     51        #define PA2KA(addr)  (((uintptr_t) (addr)) + 0x80000000)
    5852#else
    59         #define PA_OFFSET 0x80000000
     53        #define PA2KA(addr)  ((addr) + 0x80000000)
    6054#endif
    61 
    62 #ifndef __ASM__
    63         #define PA2KA(addr)  (((uintptr_t) (addr)) + PA_OFFSET)
    64 #else
    65         #define PA2KA(addr)  ((addr) + PA_OFFSET)
    66 #endif
    67 
    6855
    6956#endif
Note: See TracChangeset for help on using the changeset viewer.