socsvn commit: r287115 - soc2015/mihai/bhyve-on-arm-head/sys/arm/vexpress
mihai at FreeBSD.org
mihai at FreeBSD.org
Mon Jun 15 12:09:51 UTC 2015
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 */
More information about the svn-soc-all
mailing list