aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/runtime.h
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-09-21 13:50:02 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-09-21 13:50:02 +0800
commitb151af1f36b0e2274bbf4b816a80c940126f6b32 (patch)
treed3f3d8f69eff05c3d0d17a7eb53fc1315c5d624f /src/pkg/runtime/runtime.h
parent85729503834e899324640023f2e969042ed647ff (diff)
downloadgo-b151af1f36b0e2274bbf4b816a80c940126f6b32.tar.xz
runtime: fix mmap comments
We only pass lower 32 bits of file offset to asm routine. R=r, dave, rsc CC=golang-dev https://golang.org/cl/6499118
Diffstat (limited to 'src/pkg/runtime/runtime.h')
-rw-r--r--src/pkg/runtime/runtime.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h
index 96da29a00c..37427fb92d 100644
--- a/src/pkg/runtime/runtime.h
+++ b/src/pkg/runtime/runtime.h
@@ -728,6 +728,9 @@ void runtime·parfordo(ParFor *desc);
/*
* low level C-called
*/
+// for mmap, we only pass the lower 32 bits of file offset to the
+// assembly routine; the higher bits (if required), should be provided
+// by the assembly routine as 0.
uint8* runtime·mmap(byte*, uintptr, int32, int32, int32, uint32);
void runtime·munmap(byte*, uintptr);
void runtime·madvise(byte*, uintptr, int32);