pussuw commented on code in PR #14739:
URL: https://github.com/apache/nuttx/pull/14739#discussion_r1839496864
##########
arch/arm64/include/irq.h:
##########
@@ -407,13 +407,13 @@ static inline void up_irq_restore(irqstate_t flags)
#define up_update_task(t) modify_sysreg(t, ~1ul, tpidr_el1)
#define up_interrupt_context() (read_sysreg(tpidr_el1) & 1)
-#define up_switch_context(tcb, rtcb) \
- do { \
- if (!up_interrupt_context()) \
- { \
- sys_call2(SYS_switch_context, (uintptr_t)&rtcb->xcp.regs, \
- (uintptr_t)tcb->xcp.regs); \
- } \
+#define up_switch_context(tcb, rtcb) \
Review Comment:
Fix the formatting
```
#define up_switch_context(tcb, rtcb) \
do \
{ \
if (!up_interrupt_context()) \
{ \
sys_call2(SYS_switch_context, (uintptr_t)rtcb, (uintptr_t)tcb); \
} \
} \
while (0)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]