Skip to content

Commit

Permalink
style: fix processor.h formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreCostaaa committed Feb 6, 2025
1 parent f8fe808 commit a2fa522
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions so3/arch/arm32/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,7 @@ static inline uint32_t local_save_flags(void)
{
uint32_t flags;

asm volatile("mrs %0, " IRQMASK_REG_NAME_R
" @ local_save_flags"
asm volatile("mrs %0, " IRQMASK_REG_NAME_R " @ local_save_flags"
: "=r"(flags)
:
: "memory", "cc");
Expand Down
7 changes: 3 additions & 4 deletions so3/arch/arm64/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -1170,10 +1170,9 @@ static inline int irqs_disabled_flags(cpu_regs_t *regs)

static inline void local_irq_enable(void)
{
asm volatile(
"msr daifclr, #2 // arch_local_irq_enable\n"
"nop" ::
: "memory");
asm volatile("msr daifclr, #2 // arch_local_irq_enable\n"
"nop" ::
: "memory");
}

static inline void local_irq_disable(void)
Expand Down

0 comments on commit a2fa522

Please sign in to comment.