about summary refs log tree commit diff
path: root/ports/sysdeps
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-12-29 16:29:02 -0500
committerMike Frysinger <vapier@gentoo.org>2013-12-29 16:29:27 -0500
commit88dd1da188f37a9132230967883ba38c645c6dd9 (patch)
tree043ef28a010deb089fa74e51b021a589762aeeed /ports/sysdeps
parent11520a57961bb32d8550696add541a4939b35045 (diff)
downloadglibc-88dd1da188f37a9132230967883ba38c645c6dd9.tar.gz
glibc-88dd1da188f37a9132230967883ba38c645c6dd9.tar.xz
glibc-88dd1da188f37a9132230967883ba38c645c6dd9.zip
ia64: syscall: add some helpful documentation
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ports/sysdeps')
-rw-r--r--ports/sysdeps/unix/sysv/linux/ia64/syscall.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/ia64/syscall.S b/ports/sysdeps/unix/sysv/linux/ia64/syscall.S
index 8bb77d255c..4cd75b8d4c 100644
--- a/ports/sysdeps/unix/sysv/linux/ia64/syscall.S
+++ b/ports/sysdeps/unix/sysv/linux/ia64/syscall.S
@@ -19,6 +19,10 @@
 #include <sysdep.h>
 
 ENTRY(syscall)
+	/* We are called like so:
+	   {out0,out1,...,out6} registers -> {NR, arg1, ..., arg6}
+	   Shift the register window so that {out1...out6} are available
+	   in {out0...out5} like the kernel syscall handler expects.  */
 	alloc r2=ar.pfs,1,0,8,0
 	mov r15=r32		/* syscall number */
 	break __BREAK_SYSCALL