summaryrefslogtreecommitdiffstats
path: root/src/syscall/msan.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/syscall/msan.go')
-rw-r--r--src/syscall/msan.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/syscall/msan.go b/src/syscall/msan.go
new file mode 100644
index 0000000..baaad6d
--- /dev/null
+++ b/src/syscall/msan.go
@@ -0,0 +1,22 @@
+// 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.
+
+// +build msan
+
+package syscall
+
+import (
+ "runtime"
+ "unsafe"
+)
+
+const msanenabled = true
+
+func msanRead(addr unsafe.Pointer, len int) {
+ runtime.MSanRead(addr, len)
+}
+
+func msanWrite(addr unsafe.Pointer, len int) {
+ runtime.MSanWrite(addr, len)
+}