2016-06-29 11:47:26 +03:00
|
|
|
#ifndef MICROBLAZE_TARGET_SYSCALL_H
|
|
|
|
#define MICROBLAZE_TARGET_SYSCALL_H
|
2012-12-06 15:15:58 +04:00
|
|
|
|
2009-05-20 21:45:05 +04:00
|
|
|
#define UNAME_MACHINE "microblaze"
|
2014-02-19 16:50:41 +04:00
|
|
|
#define UNAME_MINIMUM_RELEASE "2.6.32"
|
2009-05-20 21:45:05 +04:00
|
|
|
|
|
|
|
/* We use microblaze_reg_t to keep things similar to the kernel sources. */
|
|
|
|
typedef uint32_t microblaze_reg_t;
|
|
|
|
|
|
|
|
struct target_pt_regs {
|
|
|
|
microblaze_reg_t r0;
|
|
|
|
microblaze_reg_t r1;
|
|
|
|
microblaze_reg_t r2;
|
|
|
|
microblaze_reg_t r3;
|
|
|
|
microblaze_reg_t r4;
|
|
|
|
microblaze_reg_t r5;
|
|
|
|
microblaze_reg_t r6;
|
|
|
|
microblaze_reg_t r7;
|
|
|
|
microblaze_reg_t r8;
|
|
|
|
microblaze_reg_t r9;
|
|
|
|
microblaze_reg_t r10;
|
|
|
|
microblaze_reg_t r11;
|
|
|
|
microblaze_reg_t r12;
|
|
|
|
microblaze_reg_t r13;
|
|
|
|
microblaze_reg_t r14;
|
|
|
|
microblaze_reg_t r15;
|
|
|
|
microblaze_reg_t r16;
|
|
|
|
microblaze_reg_t r17;
|
|
|
|
microblaze_reg_t r18;
|
|
|
|
microblaze_reg_t r19;
|
|
|
|
microblaze_reg_t r20;
|
|
|
|
microblaze_reg_t r21;
|
|
|
|
microblaze_reg_t r22;
|
|
|
|
microblaze_reg_t r23;
|
|
|
|
microblaze_reg_t r24;
|
|
|
|
microblaze_reg_t r25;
|
|
|
|
microblaze_reg_t r26;
|
|
|
|
microblaze_reg_t r27;
|
|
|
|
microblaze_reg_t r28;
|
|
|
|
microblaze_reg_t r29;
|
|
|
|
microblaze_reg_t r30;
|
|
|
|
microblaze_reg_t r31;
|
|
|
|
microblaze_reg_t pc;
|
|
|
|
microblaze_reg_t msr;
|
|
|
|
microblaze_reg_t ear;
|
|
|
|
microblaze_reg_t esr;
|
|
|
|
microblaze_reg_t fsr;
|
|
|
|
uint32_t kernel_mode;
|
|
|
|
};
|
2012-12-06 15:15:58 +04:00
|
|
|
|
2013-07-16 21:44:57 +04:00
|
|
|
#define TARGET_CLONE_BACKWARDS
|
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
|
2013-07-16 21:44:57 +04:00
|
|
|
|
linux-user: fix TARGET_NR_select
TARGET_NR_select can have three different implementations:
1- to always return -ENOSYS
microblaze, ppc, ppc64
-> TARGET_WANT_NI_OLD_SELECT
2- to take parameters from a structure pointed by arg1
(kernel sys_old_select)
i386, arm, m68k
-> TARGET_WANT_OLD_SYS_SELECT
3- to take parameters from arg[1-5]
(kernel sys_select)
x86_64, alpha, s390x,
cris, sparc, sparc64
Some (new) architectures don't define NR_select,
4- but only NR__newselect with sys_select:
mips, mips64, sh
5- don't define NR__newselect, and use pselect6 syscall:
aarch64, openrisc, tilegx, unicore32
Reported-by: Timothy Pearson <tpearson@raptorengineering.com>
Reported-by: Allan Wirth <awirth@akamai.com>
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2016-07-08 02:17:27 +03:00
|
|
|
#define TARGET_WANT_NI_OLD_SELECT
|
|
|
|
|
2012-12-06 15:15:58 +04:00
|
|
|
#endif
|