]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPlatformPkg/Sec/Helper.asm
ArmPlatformPkg/Sec: Fix transition to Trusted Monitor World with ARMGCC
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 28 Feb 2012 17:28:44 +0000 (17:28 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 28 Feb 2012 17:28:44 +0000 (17:28 +0000)
commita8530889115f00c668c22d26c9272b7b173fbe30
tree7c3b1552b64689954cf575137fce4341b14b8540
parent8cc852f79132897a0d371b05780762a0fcd959d8
ArmPlatformPkg/Sec: Fix transition to Trusted Monitor World with ARMGCC

The enter_monitor_world() function was trashing r0/r1/r2 registers and then
was returning back to 'C'. The compiler might have used these registers in the C code.
These new design prevents register corruptions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13060 6f19259b-4bc3-4df7-8a09-765794883524
ArmPlatformPkg/Sec/Helper.S
ArmPlatformPkg/Sec/Helper.asm
ArmPlatformPkg/Sec/Sec.c
ArmPlatformPkg/Sec/SecInternal.h