11 #ifndef _ASM_MICROBLAZE_FLAT_H
12 #define _ASM_MICROBLAZE_FLAT_H
14 #include <asm/unaligned.h>
16 #define flat_argvp_envp_on_stack() 0
17 #define flat_old_ram_flag(flags) (flags)
18 #define flat_reloc_valid(reloc, size) ((reloc) <= (size))
19 #define flat_set_persistent(relval, p) 0
35 static inline unsigned long
37 unsigned long flags,
unsigned long *persistent)
43 if (relval & 0x80000000) {
45 unsigned long val_hi, val_lo;
51 addr = ((val_hi & 0xffff) << 16) + (val_lo & 0xffff);
69 if (relval & 0x80000000) {
75 val_hi = (val_hi & 0xffff0000) | addr >> 16;
76 val_lo = (val_lo & 0xffff0000) | (addr & 0xffff);
87 #define flat_get_relocate_addr(rel) (rel & 0x7fffffff)