minix/lib/libvassert/backdoor.S
Ben Gras 914d02825f libvassert: vmware VAssert support.
- BSD-licensed Code gratefully taken from the project at
	  http://en.sourceforge.jp/projects/sfnet_vassertlinuxsdk/

	- For more information on vmware VAssert, a powerful debugging
	  facility usable under vmware, see:
	  www.vmware.com/pdf/ws65_vassert_programming.pdf
2011-07-28 03:23:10 +00:00

22 lines
416 B
ArmAsm

.global libvassert_process_backdoor
libvassert_process_backdoor:
push %ebx
push %esi
mov 0xc(%esp),%ecx
mov 0x14(%esp),%edx
mov 0x10(%esp),%ebx
mov $0x564d5868,%eax
out %eax,(%dx)
mov 0x18(%esp),%esi
mov %eax,(%esi)
mov 0x20(%esp),%eax
mov %ecx,(%eax)
mov 0x24(%esp),%eax
mov %edx,(%eax)
mov 0x1c(%esp),%eax
mov %ebx,(%eax)
pop %esi
pop %ebx
ret