]> Cypherpunks repositories - gostls13.git/commit
runtime: load runtime.goarm as a byte, not a word
authorDave Cheney <dave@cheney.net>
Sun, 29 Dec 2013 04:25:34 +0000 (15:25 +1100)
committerDave Cheney <dave@cheney.net>
Sun, 29 Dec 2013 04:25:34 +0000 (15:25 +1100)
commitd2fe44d56834b132f3759cef4bcd5dcc1bfeaa5c
treef7fab477b7f81f2bd6aeefe26cd7095ec332ed33
parent672525a56e7d326ec986bc330a7accd8ec0395f4
runtime: load runtime.goarm as a byte, not a word

Fixes #6952.

runtime.asminit was incorrectly loading runtime.goarm as a word, not a uint8 which made it subject to alignment issues on arm5 platforms.

Alignment aside, this also meant that the top 3 bytes in R11 would have been garbage and could not be assumed to be setting up the FPU reliably.

R=iant, minux.ma
CC=golang-codereviews
https://golang.org/cl/46240043
src/pkg/runtime/asm_arm.s