aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/arch_arm.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/arch_arm.go')
-rw-r--r--src/runtime/arch_arm.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/arch_arm.go b/src/runtime/arch_arm.go
index 16d3649bb..1868b7ebd 100644
--- a/src/runtime/arch_arm.go
+++ b/src/runtime/arch_arm.go
@@ -9,9 +9,9 @@ const TargetBits = 32
const deferExtraRegs = 0
-// Align on word boundary.
+// Align on the maximum alignment for this platform (double).
func align(ptr uintptr) uintptr {
- return (ptr + 3) &^ 3
+ return (ptr + 7) &^ 7
}
func getCurrentStackPointer() uintptr {