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

@ -18,22 +18,22 @@ struct _thread_arch {
typedef struct _thread_arch _thread_arch_t;
/* Architecture functions */
static inline u32_t z_arch_k_cycle_get_32(void)
static inline u32_t arch_k_cycle_get_32(void)
{
return 0;
}
static ALWAYS_INLINE unsigned int z_arch_irq_lock(void)
static ALWAYS_INLINE unsigned int arch_irq_lock(void)
{
return 0;
}
static inline void z_arch_irq_unlock(unsigned int key)
static inline void arch_irq_unlock(unsigned int key)
{
ARG_UNUSED(key);
}
static inline bool z_arch_irq_unlocked(unsigned int key)
static inline bool arch_irq_unlocked(unsigned int key)
{
return 0;
}

View file

@ -78,7 +78,7 @@ static void cpu_hold(void *arg1, void *arg2, void *arg3)
ARG_UNUSED(arg1);
ARG_UNUSED(arg2);
ARG_UNUSED(arg3);
unsigned int key = z_arch_irq_lock();
unsigned int key = arch_irq_lock();
u32_t dt, start_ms = k_uptime_get_32();
k_sem_give(&cpuhold_sem);
@ -95,7 +95,7 @@ static void cpu_hold(void *arg1, void *arg2, void *arg3)
dt = k_uptime_get_32() - start_ms;
zassert_true(dt < 3000,
"1cpu test took too long (%d ms)", dt);
z_arch_irq_unlock(key);
arch_irq_unlock(key);
}
void z_test_1cpu_start(void)