summaryrefslogtreecommitdiff
path: root/libgo/go/runtime/mmap.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/mmap.go')
-rw-r--r--libgo/go/runtime/mmap.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/libgo/go/runtime/mmap.go b/libgo/go/runtime/mmap.go
index a0768428b40..53617e41e4a 100644
--- a/libgo/go/runtime/mmap.go
+++ b/libgo/go/runtime/mmap.go
@@ -1,4 +1,4 @@
-// Copyright 2015 The Go Authors. All rights reserved.
+// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@@ -12,5 +12,8 @@ package runtime
import "unsafe"
-// mmap calls the mmap system call. It is implemented in assembly.
+// mmap calls the mmap system call. It is implemented in assembly.
+// 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.
func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) unsafe.Pointer