--- qemu/linux-user/arm/syscall.h 2018/04/24 16:37:52 1.1.1.1 +++ qemu/linux-user/arm/syscall.h 2018/04/24 16:52:08 1.1.1.3 @@ -3,7 +3,7 @@ stack during a system call. */ struct target_pt_regs { - target_long uregs[18]; + abi_long uregs[18]; }; #define ARM_cpsr uregs[16] @@ -28,7 +28,9 @@ struct target_pt_regs { #define ARM_SYSCALL_BASE 0x900000 #define ARM_THUMB_SYSCALL 0 -#define ARM_NR_cacheflush (ARM_SYSCALL_BASE + 0xf0000 + 2) +#define ARM_NR_BASE 0xf0000 +#define ARM_NR_cacheflush (ARM_NR_BASE + 2) +#define ARM_NR_set_tls (ARM_NR_BASE + 5) #define ARM_NR_semihosting 0x123456 #define ARM_NR_thumb_semihosting 0xAB @@ -38,5 +40,3 @@ struct target_pt_regs { #else #define UNAME_MACHINE "armv5tel" #endif - -uint32_t do_arm_semihosting(CPUState *);