ARM: OMAP5 / DRA7: Fix HYP mode boot for thumb2 build
commit448c077eeb
upstream. 'adr' yields a data-pointer, not a function-pointer. Fixes:999f934de1
("ARM: omap5/dra7xx: Enable booting secondary CPU in HYP mode") Signed-off-by: Matthijs van Duin <matthijsvanduin@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
efa58a24e5
commit
91304bbcf2
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include <linux/linkage.h>
|
#include <linux/linkage.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
|
#include <asm/assembler.h>
|
||||||
|
|
||||||
#include "omap44xx.h"
|
#include "omap44xx.h"
|
||||||
|
|
||||||
@ -56,7 +57,7 @@ wait_2: ldr r2, =AUX_CORE_BOOT0_PA @ read from AuxCoreBoot0
|
|||||||
cmp r0, r4
|
cmp r0, r4
|
||||||
bne wait_2
|
bne wait_2
|
||||||
ldr r12, =API_HYP_ENTRY
|
ldr r12, =API_HYP_ENTRY
|
||||||
adr r0, hyp_boot
|
badr r0, hyp_boot
|
||||||
smc #0
|
smc #0
|
||||||
hyp_boot:
|
hyp_boot:
|
||||||
b secondary_startup
|
b secondary_startup
|
||||||
|
Reference in New Issue
Block a user