summaryrefslogtreecommitdiff
path: root/src/runtime/cgo/asm_nacl_amd64p32.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/cgo/asm_nacl_amd64p32.s')
-rw-r--r--src/runtime/cgo/asm_nacl_amd64p32.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/runtime/cgo/asm_nacl_amd64p32.s b/src/runtime/cgo/asm_nacl_amd64p32.s
new file mode 100644
index 000000000..eb92014ed
--- /dev/null
+++ b/src/runtime/cgo/asm_nacl_amd64p32.s
@@ -0,0 +1,13 @@
+// Copyright 2013 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.
+
+#include "textflag.h"
+
+/*
+ * void crosscall2(void (*fn)(void*, int32), void*, int32)
+ * Save registers and call fn with two arguments.
+ */
+TEXT crosscall2(SB),NOSPLIT,$0
+ INT $3
+ RET