mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 23:05:20 +00:00
arch/arm: add CONFIG_ARCH_TRUSTZONE_SECURE to some code
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
a96c6f1abf
commit
f1b6cf78da
3 changed files with 12 additions and 0 deletions
|
|
@ -196,6 +196,7 @@ void arm_gic_initialize(void)
|
|||
|
||||
/* Registers with 1-bit per interrupt */
|
||||
|
||||
#ifdef CONFIG_ARCH_TRUSTZONE_SECURE
|
||||
/* per-CPU inerrupts config:
|
||||
* ID0-ID7(SGI) for Non-secure interrupts
|
||||
* ID8-ID15(SGI) for Secure interrupts.
|
||||
|
|
@ -203,6 +204,9 @@ void arm_gic_initialize(void)
|
|||
*/
|
||||
|
||||
putreg32(0x000000ff, GIC_ICDISR(0));
|
||||
#else
|
||||
putreg32(0x00000000, GIC_ICDISR(0)); /* SGIs and PPIs secure */
|
||||
#endif
|
||||
putreg32(0xfe000000, GIC_ICDICER(0)); /* PPIs disabled */
|
||||
|
||||
/* Registers with 8-bits per interrupt */
|
||||
|
|
|
|||
|
|
@ -196,6 +196,7 @@ void arm_gic_initialize(void)
|
|||
|
||||
/* Registers with 1-bit per interrupt */
|
||||
|
||||
#ifdef CONFIG_ARCH_TRUSTZONE_SECURE
|
||||
/* per-CPU inerrupts config:
|
||||
* ID0-ID7(SGI) for Non-secure interrupts
|
||||
* ID8-ID15(SGI) for Secure interrupts.
|
||||
|
|
@ -203,6 +204,9 @@ void arm_gic_initialize(void)
|
|||
*/
|
||||
|
||||
putreg32(0x000000ff, GIC_ICDISR(0));
|
||||
#else
|
||||
putreg32(0x00000000, GIC_ICDISR(0)); /* SGIs and PPIs secure */
|
||||
#endif
|
||||
putreg32(0xfe000000, GIC_ICDICER(0)); /* PPIs disabled */
|
||||
|
||||
/* Registers with 8-bits per interrupt */
|
||||
|
|
|
|||
|
|
@ -922,6 +922,7 @@ static void arm_gic_initialize(void)
|
|||
|
||||
/* Registers with 1-bit per interrupt */
|
||||
|
||||
#ifdef CONFIG_ARCH_TRUSTZONE_SECURE
|
||||
/* per-CPU inerrupts config:
|
||||
* ID0-ID7(SGI) for Non-secure interrupts
|
||||
* ID8-ID15(SGI) for Secure interrupts.
|
||||
|
|
@ -929,6 +930,9 @@ static void arm_gic_initialize(void)
|
|||
*/
|
||||
|
||||
putreg32(0x000000ff, GIC_ICDISR(0));
|
||||
#else
|
||||
putreg32(0x00000000, GIC_ICDISR(0)); /* SGIs and PPIs secure */
|
||||
#endif
|
||||
putreg32(0xfe000000, GIC_ICDICER(0)); /* PPIs disabled */
|
||||
|
||||
/* Registers with 8-bits per interrupt */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue