Ignore:
File:
1 edited

Legend:

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

    r9d58539 r8f9d70b  
    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
     48#elif defined MACHINE_raspberrypi
     49#define BOOT_BASE       0x00008000
    4450#else
    4551#define BOOT_BASE       0x00000000
     
    4854#define BOOT_OFFSET     (BOOT_BASE + 0xa00000)
    4955
     56#ifdef MACHINE_beagleboardxm
     57        #define PA_OFFSET 0
     58#elif defined MACHINE_beaglebone
     59        #define PA_OFFSET 0
     60#else
     61        #define PA_OFFSET 0x80000000
     62#endif
     63
    5064#ifndef __ASM__
    51         #define PA2KA(addr)  (((uintptr_t) (addr)) + 0x80000000)
     65        #define PA2KA(addr)  (((uintptr_t) (addr)) + PA_OFFSET)
    5266#else
    53         #define PA2KA(addr)  ((addr) + 0x80000000)
     67        #define PA2KA(addr)  ((addr) + PA_OFFSET)
    5468#endif
     69
    5570
    5671#endif
Note: See TracChangeset for help on using the changeset viewer.