2016-06-29 11:47:26 +03:00
|
|
|
#ifndef SH4_TARGET_SYSCALL_H
|
|
|
|
#define SH4_TARGET_SYSCALL_H
|
2016-02-01 21:38:42 +03:00
|
|
|
|
2006-04-28 01:07:38 +04:00
|
|
|
struct target_pt_regs {
|
|
|
|
unsigned long regs[16];
|
|
|
|
unsigned long pc;
|
|
|
|
unsigned long pr;
|
|
|
|
unsigned long sr;
|
|
|
|
unsigned long gbr;
|
|
|
|
unsigned long mach;
|
|
|
|
unsigned long macl;
|
|
|
|
long tra;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define UNAME_MACHINE "sh4"
|
2014-02-19 16:50:41 +04:00
|
|
|
#define UNAME_MINIMUM_RELEASE "2.6.32"
|
2014-08-12 22:53:40 +04:00
|
|
|
|
|
|
|
#define TARGET_MINSIGSTKSZ 2048
|
2014-08-12 22:53:42 +04:00
|
|
|
#define TARGET_MLOCKALL_MCL_CURRENT 1
|
|
|
|
#define TARGET_MLOCKALL_MCL_FUTURE 2
|
2016-02-01 21:38:42 +03:00
|
|
|
|
2016-07-11 18:48:11 +03:00
|
|
|
#define TARGET_FORCE_SHMLBA
|
|
|
|
|
|
|
|
static inline abi_ulong target_shmlba(CPUSH4State *env)
|
|
|
|
{
|
|
|
|
return 0x4000;
|
|
|
|
}
|
|
|
|
|
2016-06-29 11:47:26 +03:00
|
|
|
#endif /* SH4_TARGET_SYSCALL_H */
|