aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/rt0_linux_arm.s
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-05-05 01:59:14 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-05-05 01:59:14 +0800
commita642ca49309b129e77ba15a066fbf8e7c4b69b79 (patch)
tree7cf54abde6a7e7ad582fc9428de301cc6c8db27f /src/pkg/runtime/rt0_linux_arm.s
parentdac4c3eee949ccc395bde808832ab7b2bba370da (diff)
downloadgo-a642ca49309b129e77ba15a066fbf8e7c4b69b79.tar.xz
runtime: get per-process random number from auxv for hash table
Decode AT_RANDOM, AT_HWCAP, and AT_PLATFORM. This CL only make use of AT_RANDOM, but future CLs will make use of the others. R=dave, rsc CC=golang-dev https://golang.org/cl/5978051
Diffstat (limited to 'src/pkg/runtime/rt0_linux_arm.s')
-rw-r--r--src/pkg/runtime/rt0_linux_arm.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pkg/runtime/rt0_linux_arm.s b/src/pkg/runtime/rt0_linux_arm.s
index 54ea860dc1..a648160cf7 100644
--- a/src/pkg/runtime/rt0_linux_arm.s
+++ b/src/pkg/runtime/rt0_linux_arm.s
@@ -37,6 +37,10 @@ TEXT _rt0_arm_linux(SB),7,$-4
MOVW $174, R7 // sys_sigaction
SWI $0 // restore signal handler
ADD $32, R13
+
+ SUB $4, R13 // fake a stack frame for runtime·setup_auxv
+ BL runtime·setup_auxv(SB)
+ ADD $4, R13
B _rt0_arm(SB)
TEXT bad_abi<>(SB),7,$-4