summaryrefslogtreecommitdiffstats
path: root/sys/sun4v
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>2006-11-01 08:14:14 +0000
committerjb <jb@FreeBSD.org>2006-11-01 08:14:14 +0000
commit53574c6ce074fe670bb46df24c3c88a6134c55e5 (patch)
tree8821a7024fc3998a3694e0ad03e8f89e4bf2a58e /sys/sun4v
parent549129a87ec54da3c4aea9a2cf233783e4d02c3a (diff)
downloadFreeBSD-src-53574c6ce074fe670bb46df24c3c88a6134c55e5.zip
FreeBSD-src-53574c6ce074fe670bb46df24c3c88a6134c55e5.tar.gz
Add the trap-trace function for the hypervisor.
Diffstat (limited to 'sys/sun4v')
-rw-r--r--sys/sun4v/include/hypervisorvar.h1
-rw-r--r--sys/sun4v/sun4v/hcall.S17
2 files changed, 18 insertions, 0 deletions
diff --git a/sys/sun4v/include/hypervisorvar.h b/sys/sun4v/include/hypervisorvar.h
index 84b03eb..1832937 100644
--- a/sys/sun4v/include/hypervisorvar.h
+++ b/sys/sun4v/include/hypervisorvar.h
@@ -37,6 +37,7 @@
#define CPU_STICK_NPT 0x82
#define MMU_MAP_ADDR 0x83
#define MMU_UNMAP_ADDR 0x84
+#define TTRACE_ADDENTRY 0x85
/*
* Error returns in %o0.
diff --git a/sys/sun4v/sun4v/hcall.S b/sys/sun4v/sun4v/hcall.S
index 0d12194..ee6d328 100644
--- a/sys/sun4v/sun4v/hcall.S
+++ b/sys/sun4v/sun4v/hcall.S
@@ -1324,6 +1324,23 @@ hv_hpriv(void *func, uint64_t arg1, uint64_t arg2, uint64_t arg3)
SET_SIZE(hv_ttrace_freeze)
/*
+ * TTRACE_ADDENTRY
+ * arg0 tag (16-bits) (%o0)
+ * arg1 data word 0 (%o1)
+ * arg2 data word 1 (%o2)
+ * arg3 data word 2 (%o3)
+ * arg4 data word 3 (%o4)
+ * ret0 status (%o0)
+ */
+ ENTRY(hv_ttrace_addentry)
+ ta TTRACE_ADDENTRY
+ retl
+ nop
+ SET_SIZE(hv_ttrace_addentry)
+
+
+
+ /*
* MACH_DESC
* arg0 buffer real address
* arg1 pointer to uint64_t for size of buffer
OpenPOWER on IntegriCloud