mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
arch/arm: add CONFIG_ARCH_TRUSTZONE_SECURE to some code
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user