]> xenbits.xensource.com Git - people/julieng/freebsd.git/commit
Fix LEAVE_HYP macro: spsr is not guaranteed to contain valid value at this
authorgonzo <gonzo@FreeBSD.org>
Thu, 29 Oct 2015 22:12:03 +0000 (22:12 +0000)
committergonzo <gonzo@FreeBSD.org>
Thu, 29 Oct 2015 22:12:03 +0000 (22:12 +0000)
commitcaa2a6f36aa221602162cf3c48c71b51f3b3b2dd
tree570438c15f4b98ddded8fdebc0770cea96d5998d
parent9278a0880b0cf18e808f99a2a582b3a2f6971a7b
Fix LEAVE_HYP macro: spsr is not guaranteed to contain valid value at this
point, e.g. on RaspberryPi 2 when control is passed from loader to kernel
it contains garbage. So we use cpsr as a base for new cpsr value: if we
have reached this point it means current value is OK

Reviewed by: andrew
sys/arm/arm/locore-v6.S