Files
u-boot/arch/sandbox/include/asm/system.h
Simon Glass ff74bdbef3 sandbox: Convert IRQ macros to static inline functions
Convert the local_irq_* macros to static inline functions to avoid
"unused variable 'flags'" warnings when building with the atomic
operations from asm-generic/atomic.h.

Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
2025-12-27 13:24:26 -07:00

17 lines
437 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (c) 2011 The Chromium OS Authors.
*/
#ifndef __ASM_SANDBOX_SYSTEM_H
#define __ASM_SANDBOX_SYSTEM_H
/* Define this as nops for sandbox architecture */
#define local_irq_save(x) ((x) = 0)
#define local_irq_enable() do { } while (0)
#define local_irq_disable() do { } while (0)
#define local_save_flags(x) ((x) = 0)
#define local_irq_restore(x) do { (void)(x); } while (0)
#endif