kernel: rename z_arch_ to arch_
Promote the private z_arch_* namespace, which specifies the interface between the core kernel and the architecture code, to a new top-level namespace named arch_*. This allows our documentation generation to create online documentation for this set of interfaces, and this set of interfaces is worth treating in a more formal way anyway. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
a6de79b4af
commit
4f77c2ad53
178 changed files with 912 additions and 910 deletions
|
@ -24,13 +24,13 @@ extern "C" {
|
|||
|
||||
#ifdef _ASMLANGUAGE
|
||||
GTEXT(z_arm_int_exit);
|
||||
GTEXT(z_arch_irq_enable)
|
||||
GTEXT(z_arch_irq_disable)
|
||||
GTEXT(z_arch_irq_is_enabled)
|
||||
GTEXT(arch_irq_enable)
|
||||
GTEXT(arch_irq_disable)
|
||||
GTEXT(arch_irq_is_enabled)
|
||||
#else
|
||||
extern void z_arch_irq_enable(unsigned int irq);
|
||||
extern void z_arch_irq_disable(unsigned int irq);
|
||||
extern int z_arch_irq_is_enabled(unsigned int irq);
|
||||
extern void arch_irq_enable(unsigned int irq);
|
||||
extern void arch_irq_disable(unsigned int irq);
|
||||
extern int arch_irq_is_enabled(unsigned int irq);
|
||||
|
||||
extern void z_arm_int_exit(void);
|
||||
|
||||
|
@ -76,14 +76,14 @@ extern void z_arm_irq_priority_set(unsigned int irq, unsigned int prio,
|
|||
* We additionally set the priority in the interrupt controller at
|
||||
* runtime.
|
||||
*/
|
||||
#define Z_ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p) \
|
||||
#define ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p) \
|
||||
({ \
|
||||
Z_ISR_DECLARE(irq_p, 0, isr_p, isr_param_p); \
|
||||
z_arm_irq_priority_set(irq_p, priority_p, flags_p); \
|
||||
irq_p; \
|
||||
})
|
||||
|
||||
#define Z_ARCH_IRQ_DIRECT_CONNECT(irq_p, priority_p, isr_p, flags_p) \
|
||||
#define ARCH_IRQ_DIRECT_CONNECT(irq_p, priority_p, isr_p, flags_p) \
|
||||
({ \
|
||||
Z_ISR_DECLARE(irq_p, ISR_FLAG_DIRECT, isr_p, NULL); \
|
||||
z_arm_irq_priority_set(irq_p, priority_p, flags_p); \
|
||||
|
@ -93,15 +93,15 @@ extern void z_arm_irq_priority_set(unsigned int irq, unsigned int prio,
|
|||
/* FIXME prefer these inline, but see GH-3056 */
|
||||
#ifdef CONFIG_SYS_POWER_MANAGEMENT
|
||||
extern void _arch_isr_direct_pm(void);
|
||||
#define Z_ARCH_ISR_DIRECT_PM() _arch_isr_direct_pm()
|
||||
#define ARCH_ISR_DIRECT_PM() _arch_isr_direct_pm()
|
||||
#else
|
||||
#define Z_ARCH_ISR_DIRECT_PM() do { } while (false)
|
||||
#define ARCH_ISR_DIRECT_PM() do { } while (false)
|
||||
#endif
|
||||
|
||||
#define Z_ARCH_ISR_DIRECT_HEADER() z_arch_isr_direct_header()
|
||||
extern void z_arch_isr_direct_header(void);
|
||||
#define ARCH_ISR_DIRECT_HEADER() arch_isr_direct_header()
|
||||
extern void arch_isr_direct_header(void);
|
||||
|
||||
#define Z_ARCH_ISR_DIRECT_FOOTER(swap) z_arch_isr_direct_footer(swap)
|
||||
#define ARCH_ISR_DIRECT_FOOTER(swap) arch_isr_direct_footer(swap)
|
||||
|
||||
/* arch/arm/core/exc_exit.S */
|
||||
extern void z_arm_int_exit(void);
|
||||
|
@ -110,7 +110,7 @@ extern void z_arm_int_exit(void);
|
|||
extern void sys_trace_isr_exit(void);
|
||||
#endif
|
||||
|
||||
static inline void z_arch_isr_direct_footer(int maybe_swap)
|
||||
static inline void arch_isr_direct_footer(int maybe_swap)
|
||||
{
|
||||
|
||||
#ifdef CONFIG_TRACING
|
||||
|
@ -121,7 +121,7 @@ static inline void z_arch_isr_direct_footer(int maybe_swap)
|
|||
}
|
||||
}
|
||||
|
||||
#define Z_ARCH_ISR_DIRECT_DECLARE(name) \
|
||||
#define ARCH_ISR_DIRECT_DECLARE(name) \
|
||||
static inline int name##_body(void); \
|
||||
__attribute__ ((interrupt ("IRQ"))) void name(void) \
|
||||
{ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue