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
|
@ -129,7 +129,7 @@ void k_mem_domain_destroy(struct k_mem_domain *domain)
|
|||
|
||||
key = k_spin_lock(&lock);
|
||||
|
||||
z_arch_mem_domain_destroy(domain);
|
||||
arch_mem_domain_destroy(domain);
|
||||
|
||||
SYS_DLIST_FOR_EACH_NODE_SAFE(&domain->mem_domain_q, node, next_node) {
|
||||
struct k_thread *thread =
|
||||
|
@ -176,7 +176,7 @@ void k_mem_domain_add_partition(struct k_mem_domain *domain,
|
|||
|
||||
domain->num_partitions++;
|
||||
|
||||
z_arch_mem_domain_partition_add(domain, p_idx);
|
||||
arch_mem_domain_partition_add(domain, p_idx);
|
||||
k_spin_unlock(&lock, key);
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,7 @@ void k_mem_domain_remove_partition(struct k_mem_domain *domain,
|
|||
/* Assert if not found */
|
||||
__ASSERT(p_idx < max_partitions, "no matching partition found");
|
||||
|
||||
z_arch_mem_domain_partition_remove(domain, p_idx);
|
||||
arch_mem_domain_partition_remove(domain, p_idx);
|
||||
|
||||
/* A zero-sized partition denotes it's a free partition */
|
||||
domain->partitions[p_idx].size = 0U;
|
||||
|
@ -227,7 +227,7 @@ void k_mem_domain_add_thread(struct k_mem_domain *domain, k_tid_t thread)
|
|||
&thread->mem_domain_info.mem_domain_q_node);
|
||||
thread->mem_domain_info.mem_domain = domain;
|
||||
|
||||
z_arch_mem_domain_thread_add(thread);
|
||||
arch_mem_domain_thread_add(thread);
|
||||
|
||||
k_spin_unlock(&lock, key);
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ void k_mem_domain_remove_thread(k_tid_t thread)
|
|||
__ASSERT(thread->mem_domain_info.mem_domain != NULL, "mem domain set");
|
||||
|
||||
key = k_spin_lock(&lock);
|
||||
z_arch_mem_domain_thread_remove(thread);
|
||||
arch_mem_domain_thread_remove(thread);
|
||||
|
||||
sys_dlist_remove(&thread->mem_domain_info.mem_domain_q_node);
|
||||
thread->mem_domain_info.mem_domain = NULL;
|
||||
|
@ -251,7 +251,7 @@ static int init_mem_domain_module(struct device *arg)
|
|||
{
|
||||
ARG_UNUSED(arg);
|
||||
|
||||
max_partitions = z_arch_mem_domain_max_partitions_get();
|
||||
max_partitions = arch_mem_domain_max_partitions_get();
|
||||
/*
|
||||
* max_partitions must be less than or equal to
|
||||
* CONFIG_MAX_DOMAIN_PARTITIONS, or would encounter array index
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue