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

@ -100,7 +100,7 @@ static ALWAYS_INLINE bool z_syscall_trap(void)
#elif defined(__ZEPHYR_USER__)
ret = true;
#else
ret = z_arch_is_user_context();
ret = arch_is_user_context();
#endif
#endif
return ret;
@ -114,7 +114,7 @@ static ALWAYS_INLINE bool z_syscall_trap(void)
static inline bool _is_user_context(void)
{
#ifdef CONFIG_USERSPACE
return z_arch_is_user_context();
return arch_is_user_context();
#else
return false;
#endif