Skip to content
Commit 6c5c2a01 authored by Russell King's avatar Russell King
Browse files

ARM: proc-arm94*.S: fix setup function



Both ARM946 and ARM940 setup functions were corrupting r1 and r2,
which is not permissible - these are used to carry the machine ID
and boot data into the kernel, and must be preserved.

The code responsible for this was the same in both files: they were
using the registers to generate a protection region register value.

Fix this by turning this process into a macro, and using that macro
in both these files with an alternative register allocation.  r0,
r3 and r7 can be used for temporary values here.

Reported-by: default avatarAlex Dumitrache <broscutamaker@gmail.com>
Tested-by: default avatarGeorg Hofstetter <g3gg0.de@gmail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent f6ac49ba
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment