@ -107,6 +107,8 @@ ENTRY(gic_init_secure_percpu)
mov w11 , #0x1 / * E n a b l e S G I 0 * /
str w11 , [ x10 , G I C R _ I S E N A B L E R n ]
switch_ e l x10 , 3 f , 2 f , 1 f
3 :
/* Initialize Cpu Interface */
mrs x10 , I C C _ S R E _ E L 3
orr x10 , x10 , #0xf / * S R E & D i s a b l e I R Q / F I Q B y p a s s & * /
@ -114,19 +116,19 @@ ENTRY(gic_init_secure_percpu)
msr I C C _ S R E _ E L 3 , x10
isb
mrs x10 , I C C _ S R E _ E L 2
orr x10 , x10 , #0xf / * S R E & D i s a b l e I R Q / F I Q B y p a s s & * /
/* Allow EL1 access to ICC_SRE_EL1 */
msr I C C _ S R E _ E L 2 , x10
isb
mov x10 , #0x3 / * E n a b l e G r p1 N S | E n a b l e G r p1 S * /
msr I C C _ I G R P E N 1 _ E L 3 , x10
isb
msr I C C _ C T L R _ E L 3 , x z r
isb
2 :
mrs x10 , I C C _ S R E _ E L 2
orr x10 , x10 , #0xf / * S R E & D i s a b l e I R Q / F I Q B y p a s s & * /
/* Allow EL1 access to ICC_SRE_EL1 */
msr I C C _ S R E _ E L 2 , x10
isb
1 :
msr I C C _ C T L R _ E L 1 , x z r / * N o n S e c u r e I C C _ C T L R _ E L 1 * /
isb