summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-07-29 15:17:27 -0700
committerRob Pike <r@golang.org>2008-07-29 15:17:27 -0700
commit2cecb96f0b434b6a894d9d3c29f2c45329dfeb88 (patch)
treed2f9bb33bf8b47ad19df2b2adab3b64e397862ef
parent682619f4a77382f8a22f0d3d417b413d9dc6b310 (diff)
downloadgo-2cecb96f0b434b6a894d9d3c29f2c45329dfeb88.tar.gz
fix a comment
fix a register name R=gri OCL=13548 CL=13548
-rw-r--r--src/runtime/rt1_amd64_linux.c2
-rw-r--r--src/syscall/syscall.go5
2 files changed, 2 insertions, 5 deletions
diff --git a/src/runtime/rt1_amd64_linux.c b/src/runtime/rt1_amd64_linux.c
index 9f3d99e6e..99700fdf8 100644
--- a/src/runtime/rt1_amd64_linux.c
+++ b/src/runtime/rt1_amd64_linux.c
@@ -153,7 +153,7 @@ sighandler(int32 sig, siginfo* info, void** context)
prints("\n\n");
traceback((void *)sc->rip, (void *)sc->rsp, (void *)sc->r15);
- tracebackothers((void*)sc->__r15);
+ tracebackothers((void*)sc->r15);
print_sigcontext(sc);
sys·breakpoint();
diff --git a/src/syscall/syscall.go b/src/syscall/syscall.go
index 927536074..8475001a7 100644
--- a/src/syscall/syscall.go
+++ b/src/syscall/syscall.go
@@ -5,10 +5,7 @@
package syscall
/*
- * These calls have signatures that are independent of operating system.
- *
- * For simplicity of addressing in assembler, all integers are 64 bits
- * in these calling sequences (although it complicates some, such as pipe)
+ * Foundation of system call interface.
*/
func Syscall(trap int64, a1, a2, a3 int64) (r1, r2, err int64);