Brad Fitzpatrick | 5194744 | 2016-03-01 22:57:46 +0000 | [diff] [blame] | 1 | // Copyright 2015 The Go Authors. All rights reserved. |
Ian Lance Taylor | 73f329f | 2015-10-21 11:04:42 -0700 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | // +build msan |
| 6 | |
| 7 | package syscall |
| 8 | |
| 9 | import ( |
| 10 | "runtime" |
| 11 | "unsafe" |
| 12 | ) |
| 13 | |
| 14 | const msanenabled = true |
| 15 | |
| 16 | func msanRead(addr unsafe.Pointer, len int) { |
| 17 | runtime.MSanRead(addr, len) |
| 18 | } |
| 19 | |
| 20 | func msanWrite(addr unsafe.Pointer, len int) { |
| 21 | runtime.MSanWrite(addr, len) |
| 22 | } |