Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2015 12:09:50 GMT
From:      mihai@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r287115 - soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress
Message-ID:  <201506151209.t5FC9oct068067@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mihai
Date: Mon Jun 15 12:09:49 2015
New Revision: 287115
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=287115

Log:
  sys: arm: vexpress: add semihosting feature for EARLY printfs using special syscall 0x1234

Added:
  soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.S
  soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.h

Added: soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.S
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.S	Mon Jun 15 12:09:49 2015	(r287115)
@@ -0,0 +1,8 @@
+	@
+	@ Function for C code to make semihosting calls:
+	@
+	.globl __semi_call
+__semi_call:
+	svc     0x123456
+	mov pc, lr
+

Added: soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress/vexpress_semihosting.h	Mon Jun 15 12:09:49 2015	(r287115)
@@ -0,0 +1,9 @@
+#ifndef SEMIHOSTING_H
+#define SEMIHOSTING_H
+
+#define SYS_WRITE0	4
+#define SEMIHOSTING_SVC	0x123456	/* SVC comment field for semihosting */
+
+int __semi_call(int id, ...);
+
+#endif /* ! SEMIHOSTING_H */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506151209.t5FC9oct068067>