Skip to content

Commit

Permalink
Revert "kernel: Arch specific memory domain APIs added"
Browse files Browse the repository at this point in the history
This reverts commit 8d910b3.
  • Loading branch information
andrewboie authored and Anas Nashif committed Oct 20, 2017
1 parent 21a7a0f commit fd29276
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions kernel/mem_domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

static u8_t max_partitions;


void k_mem_domain_init(struct k_mem_domain *domain, u32_t num_parts,
struct k_mem_partition *parts[])
{
Expand Down Expand Up @@ -48,11 +49,6 @@ void k_mem_domain_destroy(struct k_mem_domain *domain)

key = irq_lock();

/* Handle architecture specifc destroy only if it is the current thread*/
if (_current->mem_domain_info.mem_domain == domain) {
_arch_mem_domain_destroy(domain);
}

SYS_DLIST_FOR_EACH_NODE_SAFE(&domain->mem_domain_q, node, next_node) {
struct k_thread *thread =
CONTAINER_OF(node, struct k_thread, mem_domain_info);
Expand Down Expand Up @@ -115,11 +111,6 @@ void k_mem_domain_remove_partition(struct k_mem_domain *domain,
/* Assert if not found */
__ASSERT(p_idx < max_partitions, "");

/* Handle architecture specifc remove only if it is the current thread*/
if (_current->mem_domain_info.mem_domain == domain) {
_arch_mem_domain_remove_partition(domain, p_idx);
}

domain->partitions[p_idx].start = 0;
domain->partitions[p_idx].size = 0;
domain->partitions[p_idx].attr = 0;
Expand Down

0 comments on commit fd29276

Please sign in to comment.