aboutsummaryrefslogtreecommitdiff
path: root/linux-user/arm/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/arm/syscall.h')
-rw-r--r--linux-user/arm/syscall.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-user/arm/syscall.h b/linux-user/arm/syscall.h
index f74d765289..daf4b34af8 100644
--- a/linux-user/arm/syscall.h
+++ b/linux-user/arm/syscall.h
@@ -29,8 +29,13 @@ struct target_pt_regs {
#define ARM_NR_cacheflush (ARM_SYSCALL_BASE + 0xf0000 + 2)
+#define ARM_NR_semihosting 0x123456
+#define ARM_NR_thumb_semihosting 0xAB
+
#if defined(TARGET_WORDS_BIGENDIAN)
#define UNAME_MACHINE "armv5teb"
#else
#define UNAME_MACHINE "armv5tel"
#endif
+
+uint32_t do_arm_semihosting(CPUState *);