x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / arch / m68k / include / asm / flat.h
blob00c392b0cabdb8288c46b4b27008e4c364ed2ac4
1 /*
2 * flat.h -- uClinux flat-format executables
3 */
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)
19 return 0;
22 #define FLAT_PLAT_INIT(regs) \
23 do { \
24 if (current->mm) \
25 (regs)->d5 = current->mm->start_data; \
26 } while (0)
28 #endif /* __M68KNOMMU_FLAT_H__ */