1 /* 2 * flat.h -- uClinux flat-format executables 3 */ 4 5 #ifndef __M68KNOMMU_FLAT_H__ 6 #define __M68KNOMMU_FLAT_H__ 7 8 #define flat_argvp_envp_on_stack() 1 9 #define flat_old_ram_flag(flags) (flags) 10 #define flat_reloc_valid(reloc, size) ((reloc) <= (size)) 11 #define flat_get_addr_from_rp(rp, relval, flags, p) \ 12 ({ unsigned long __val; __get_user_unaligned(__val, rp); __val; }) 13 #define flat_put_addr_at_rp(rp, val, relval) __put_user_unaligned(val, rp) 14 #define flat_get_relocate_addr(rel) (rel) 15 16 static inline int flat_set_persistent(unsigned long relval, 17 unsigned long *persistent) 18 { 19 return 0; 20 } 21 22 #define FLAT_PLAT_INIT(regs) \ 23 do { \ 24 if (current->mm) \ 25 (regs)->d5 = current->mm->start_data; \ 26 } while (0) 27 28 #endif /* __M68KNOMMU_FLAT_H__ */ 29