mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
arm_secure_irq: fix NVIC_IRQ_DBGMONITOR un-secure set failed
NVIC_DEMCR.SDME is a read-only bit Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -63,9 +63,8 @@ void up_secure_irq(int irq, bool secure)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case NVIC_IRQ_DBGMONITOR:
|
case NVIC_IRQ_DBGMONITOR:
|
||||||
regaddr = NVIC_DEMCR;
|
regaddr = NVIC_DAUTHCTRL;
|
||||||
regbit = NVIC_DEMCR_SDME;
|
regbit = NVIC_DAUTHCTRL_SPIDENSEL;
|
||||||
secure = !secure;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -823,6 +823,11 @@
|
|||||||
#define NVIC_DSCEMCR_CLR_MON_PEND (1 << 17) /* Bit 17: Clear monitor pend */
|
#define NVIC_DSCEMCR_CLR_MON_PEND (1 << 17) /* Bit 17: Clear monitor pend */
|
||||||
#define NVIC_DSCEMCR_CLR_MON_REQ (1 << 19) /* Bit 19: Clear monitor request */
|
#define NVIC_DSCEMCR_CLR_MON_REQ (1 << 19) /* Bit 19: Clear monitor request */
|
||||||
|
|
||||||
|
/* Debug Authentication Control Register (DAUTHCTRL) */
|
||||||
|
|
||||||
|
#define NVIC_DAUTHCTRL_SPIDENSEL (1 << 0) /* Bit 0: Secure invasive debug enable select */
|
||||||
|
#define NVIC_DAUTHCTRL_INTSPIDEN (1 << 1) /* Bit 1: Internal Secure invasive debug enable */
|
||||||
|
|
||||||
/* Floating-Point Context Control Register (FPCCR) */
|
/* Floating-Point Context Control Register (FPCCR) */
|
||||||
|
|
||||||
#define NVIC_FPCCR_LSPACT (1 << 0) /* Bit 0: Lazy state preservation active */
|
#define NVIC_FPCCR_LSPACT (1 << 0) /* Bit 0: Lazy state preservation active */
|
||||||
|
|||||||
Reference in New Issue
Block a user