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:
Andrew Boie 2019-11-07 12:43:29 -08:00 committed by Andrew Boie
commit 4f77c2ad53
178 changed files with 912 additions and 910 deletions

View file

@ -48,7 +48,7 @@ extern "C" {
* @return Interrupt vector assigned to this interrupt.
*/
#define IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p) \
Z_ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p)
ARCH_IRQ_CONNECT(irq_p, priority_p, isr_p, isr_param_p, flags_p)
/**
* Configure a dynamic interrupt.
@ -68,7 +68,8 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority,
void (*routine)(void *parameter), void *parameter,
u32_t flags)
{
return z_arch_irq_connect_dynamic(irq, priority, routine, parameter, flags);
return arch_irq_connect_dynamic(irq, priority, routine, parameter,
flags);
}
/**
@ -112,7 +113,7 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority,
* @return Interrupt vector assigned to this interrupt.
*/
#define IRQ_DIRECT_CONNECT(irq_p, priority_p, isr_p, flags_p) \
Z_ARCH_IRQ_DIRECT_CONNECT(irq_p, priority_p, isr_p, flags_p)
ARCH_IRQ_DIRECT_CONNECT(irq_p, priority_p, isr_p, flags_p)
/**
* @brief Common tasks before executing the body of an ISR
@ -121,7 +122,7 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority,
* minimal architecture-specific tasks before the ISR itself can run. It takes
* no arguments and has no return value.
*/
#define ISR_DIRECT_HEADER() Z_ARCH_ISR_DIRECT_HEADER()
#define ISR_DIRECT_HEADER() ARCH_ISR_DIRECT_HEADER()
/**
* @brief Common tasks before exiting the body of an ISR
@ -139,7 +140,7 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority,
* @param check_reschedule If nonzero, additionally invoke scheduling logic
*/
#define ISR_DIRECT_FOOTER(check_reschedule) \
Z_ARCH_ISR_DIRECT_FOOTER(check_reschedule)
ARCH_ISR_DIRECT_FOOTER(check_reschedule)
/**
* @brief Perform power management idle exit logic
@ -149,7 +150,7 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority,
* exit power management idle state. It takes no parameters and returns no
* arguments. It may be omitted, but be careful!
*/
#define ISR_DIRECT_PM() Z_ARCH_ISR_DIRECT_PM()
#define ISR_DIRECT_PM() ARCH_ISR_DIRECT_PM()
/**
* @brief Helper macro to declare a direct interrupt service routine.
@ -179,7 +180,7 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority,
*
* @param name symbol name of the ISR
*/
#define ISR_DIRECT_DECLARE(name) Z_ARCH_ISR_DIRECT_DECLARE(name)
#define ISR_DIRECT_DECLARE(name) ARCH_ISR_DIRECT_DECLARE(name)
/**
* @brief Lock interrupts.
@ -218,7 +219,7 @@ irq_connect_dynamic(unsigned int irq, unsigned int priority,
unsigned int z_smp_global_lock(void);
#define irq_lock() z_smp_global_lock()
#else
#define irq_lock() z_arch_irq_lock()
#define irq_lock() arch_irq_lock()
#endif
/**
@ -240,7 +241,7 @@ unsigned int z_smp_global_lock(void);
void z_smp_global_unlock(unsigned int key);
#define irq_unlock(key) z_smp_global_unlock(key)
#else
#define irq_unlock(key) z_arch_irq_unlock(key)
#define irq_unlock(key) arch_irq_unlock(key)
#endif
/**
@ -252,7 +253,7 @@ void z_smp_global_unlock(unsigned int key);
*
* @return N/A
*/
#define irq_enable(irq) z_arch_irq_enable(irq)
#define irq_enable(irq) arch_irq_enable(irq)
/**
* @brief Disable an IRQ.
@ -263,7 +264,7 @@ void z_smp_global_unlock(unsigned int key);
*
* @return N/A
*/
#define irq_disable(irq) z_arch_irq_disable(irq)
#define irq_disable(irq) arch_irq_disable(irq)
/**
* @brief Get IRQ enable state.
@ -274,7 +275,7 @@ void z_smp_global_unlock(unsigned int key);
*
* @return interrupt enable state, true or false
*/
#define irq_is_enabled(irq) z_arch_irq_is_enabled(irq)
#define irq_is_enabled(irq) arch_irq_is_enabled(irq)
/**
* @}