xref: /OK3568_Linux_fs/kernel/arch/m68k/include/asm/flat.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * flat.h -- uClinux flat-format executables
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun #ifndef __M68KNOMMU_FLAT_H__
7*4882a593Smuzhiyun #define __M68KNOMMU_FLAT_H__
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #include <asm-generic/flat.h>
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #define FLAT_PLAT_INIT(regs) \
12*4882a593Smuzhiyun 	do { \
13*4882a593Smuzhiyun 		if (current->mm) \
14*4882a593Smuzhiyun 			(regs)->d5 = current->mm->start_data; \
15*4882a593Smuzhiyun 	} while (0)
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #endif /* __M68KNOMMU_FLAT_H__ */
18