--- qemu/linux-user/arm/syscall.h 2018/04/24 16:48:15 1.1.1.2 +++ qemu/linux-user/arm/syscall.h 2018/04/24 16:52:08 1.1.1.3 @@ -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 *);