From aebde7cd7d2929c499ec9a8a9f56e96eb08d0161 Mon Sep 17 00:00:00 2001 From: Hyang-Ah Hana Kim Date: Wed, 9 Dec 2015 21:40:59 -0500 Subject: [PATCH] app/internal/callfn: allow android/386,amd64 For golang/go#10743 Change-Id: I374fae9d6e0a7926b26647fe462968df3c0e3298 Reviewed-on: https://go-review.googlesource.com/17679 Reviewed-by: David Crawshaw --- app/internal/callfn/callfn.go | 3 ++- app/internal/callfn/callfn_386.s | 11 +++++++++++ app/internal/callfn/callfn_amd64.s | 11 +++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 app/internal/callfn/callfn_386.s create mode 100644 app/internal/callfn/callfn_amd64.s diff --git a/app/internal/callfn/callfn.go b/app/internal/callfn/callfn.go index ed4cac3..023558d 100644 --- a/app/internal/callfn/callfn.go +++ b/app/internal/callfn/callfn.go @@ -2,7 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build android,arm +// +build android +// +build arm 386 amd64 // Package callfn provides an android entry point. // diff --git a/app/internal/callfn/callfn_386.s b/app/internal/callfn/callfn_386.s new file mode 100644 index 0000000..d2bb54f --- /dev/null +++ b/app/internal/callfn/callfn_386.s @@ -0,0 +1,11 @@ +// 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. + +#include "textflag.h" +#include "funcdata.h" + +TEXT ·CallFn(SB),$0-4 + MOVL fn+0(FP), AX + CALL AX + RET diff --git a/app/internal/callfn/callfn_amd64.s b/app/internal/callfn/callfn_amd64.s new file mode 100644 index 0000000..8769604 --- /dev/null +++ b/app/internal/callfn/callfn_amd64.s @@ -0,0 +1,11 @@ +// 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. + +#include "textflag.h" +#include "funcdata.h" + +TEXT ·CallFn(SB),$0-8 + MOVQ fn+0(FP), AX + CALL AX + RET