Fix setting the SMP bit in the Auxiliary Control Register. The old code was
authorkettenis <kettenis@openbsd.org>
Sun, 14 Aug 2016 10:36:47 +0000 (10:36 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 14 Aug 2016 10:36:47 +0000 (10:36 +0000)
commit5cc932231238260abb3793dbfcb27cfc6173737d
tree35f79cde53adf2e70750f12ebf710fae0bce0d19
parentaa6ddb64423f010039b4f9952c0aabb63612a1b5
Fix setting the SMP bit in the Auxiliary Control Register.  The old code was
toggling the bit, clearing it when already set.  On Cortex-A7 setting the SMP
bit is essential since without it the CPU doesn't actually use its caches.

The SMP bit supposed to be set before turning on the caches and the MMU, so
move the setting of the Auxiliary Control Register before setting the
System Control Register.

ok jsg@
sys/arch/arm/arm/cpufunc.c
sys/arch/arm/include/armreg.h