2 * flat.h -- uClinux flat-format executables
5 #ifndef __M68KNOMMU_FLAT_H__
6 #define __M68KNOMMU_FLAT_H__
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)
16 static inline int flat_set_persistent(unsigned long relval
,
17 unsigned long *persistent
)
22 #define FLAT_PLAT_INIT(regs) \
25 (regs)->d5 = current->mm->start_data; \
28 #endif /* __M68KNOMMU_FLAT_H__ */