From 88dd1da188f37a9132230967883ba38c645c6dd9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 29 Dec 2013 16:29:02 -0500 Subject: [PATCH] ia64: syscall: add some helpful documentation Signed-off-by: Mike Frysinger --- ports/ChangeLog.ia64 | 4 ++++ ports/sysdeps/unix/sysv/linux/ia64/syscall.S | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ports/ChangeLog.ia64 b/ports/ChangeLog.ia64 index 34391c1..8e9b24d 100644 --- a/ports/ChangeLog.ia64 +++ b/ports/ChangeLog.ia64 @@ -1,3 +1,7 @@ +2013-12-29 Mike Frysinger + + * sysdeps/unix/sysv/linux/ia64/syscall.S: Add a comment. + 2013-12-25 Mike Frysinger * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h diff --git a/ports/sysdeps/unix/sysv/linux/ia64/syscall.S b/ports/sysdeps/unix/sysv/linux/ia64/syscall.S index 8bb77d2..4cd75b8 100644 --- a/ports/sysdeps/unix/sysv/linux/ia64/syscall.S +++ b/ports/sysdeps/unix/sysv/linux/ia64/syscall.S @@ -19,6 +19,10 @@ #include 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 -- 2.7.4