From 846ee0465bcb97d0c036e2366aa92b962d050aef Mon Sep 17 00:00:00 2001 From: Aram Hăvărneanu Date: Sun, 8 Mar 2015 14:20:20 +0100 Subject: runtime: add support for linux/arm64 Change-Id: Ibda6a5bedaff57fd161d63fc04ad260931d34413 Reviewed-on: https://go-review.googlesource.com/7142 Reviewed-by: Russ Cox --- src/runtime/stack1.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/runtime/stack1.go') diff --git a/src/runtime/stack1.go b/src/runtime/stack1.go index 3f89bb1739..5f28d28757 100644 --- a/src/runtime/stack1.go +++ b/src/runtime/stack1.go @@ -439,10 +439,13 @@ func adjustframe(frame *stkframe, arg unsafe.Pointer) bool { // Adjust local variables if stack frame has been allocated. size := frame.varp - frame.sp var minsize uintptr - if thechar != '6' && thechar != '8' { - minsize = ptrSize - } else { + switch thechar { + case '6', '8': minsize = 0 + case '7': + minsize = spAlign + default: + minsize = ptrSize } if size > minsize { var bv bitvector -- cgit v1.3