Add the trap-trace function for the hypervisor.

This commit is contained in:
jb 2006-11-01 08:14:14 +00:00
parent 549129a87e
commit 53574c6ce0
2 changed files with 18 additions and 0 deletions

View File

@ -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.

View File

@ -1323,6 +1323,23 @@ hv_hpriv(void *func, uint64_t arg1, uint64_t arg2, uint64_t arg3)
stx %o1, [%o2]
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