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
|
@ -9,15 +9,14 @@
|
|||
* clock.
|
||||
*
|
||||
* Therefore, the code will always run until completion after each interrupt,
|
||||
* after which z_arch_cpu_idle() will be called releasing the execution back to the
|
||||
* HW models.
|
||||
* after which arch_cpu_idle() will be called releasing the execution back to
|
||||
* the HW models.
|
||||
*
|
||||
* The HW models raising an interrupt will "awake the cpu" by calling
|
||||
* poisix_interrupt_raised() which will transfer control to the irq handler,
|
||||
* which will run inside SW/Zephyr contenxt. After which a z_arch_swap() to whatever
|
||||
* Zephyr thread may follow.
|
||||
* Again, once Zephyr is done, control is given back to the HW models.
|
||||
*
|
||||
* which will run inside SW/Zephyr contenxt. After which a arch_swap() to
|
||||
* whatever Zephyr thread may follow. Again, once Zephyr is done, control is
|
||||
* given back to the HW models.
|
||||
*
|
||||
* The Zephyr OS+APP code and the HW models are gated by a mutex +
|
||||
* condition as there is no reason to let the zephyr threads run while the
|
||||
|
@ -125,7 +124,7 @@ void posix_interrupt_raised(void)
|
|||
|
||||
|
||||
/**
|
||||
* Normally called from z_arch_cpu_idle():
|
||||
* Normally called from arch_cpu_idle():
|
||||
* the idle loop will call this function to set the CPU to "sleep".
|
||||
* Others may also call this function with care. The CPU will be set to sleep
|
||||
* until some interrupt awakes it.
|
||||
|
@ -143,8 +142,8 @@ void posix_halt_cpu(void)
|
|||
* => let the "irq handler" check if/what interrupt was raised
|
||||
* and call the appropriate irq handler.
|
||||
*
|
||||
* Note that, the interrupt handling may trigger a z_arch_swap() to another
|
||||
* Zephyr thread. When posix_irq_handler() returns, the Zephyr
|
||||
* Note that, the interrupt handling may trigger a arch_swap() to
|
||||
* another Zephyr thread. When posix_irq_handler() returns, the Zephyr
|
||||
* kernel has swapped back to this thread again
|
||||
*/
|
||||
posix_irq_handler();
|
||||
|
@ -156,7 +155,7 @@ void posix_halt_cpu(void)
|
|||
|
||||
|
||||
/**
|
||||
* Implementation of z_arch_cpu_atomic_idle() for this SOC
|
||||
* Implementation of arch_cpu_atomic_idle() for this SOC
|
||||
*/
|
||||
void posix_atomic_halt_cpu(unsigned int imask)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue