Enable caching early in assembly.
By doing this early, more code is able to make assumptions about using
the cache so there are fewer areas where manual cache management is
required.
Moving to assembly means less assumptions are made about the state of
the cache before it is enabled. Doing this in C means there are concerns
about the state of the stack if the cache is ever not clean and invalid.
Bug: 141103913
Bug: 139269163
Change-Id: I8ff01c2c2a0c035f147d2d1a8372dbd8bec7ce73
diff --git a/inc/hf/arch/mm.h b/inc/hf/arch/mm.h
index d470d08..a7a155a 100644
--- a/inc/hf/arch/mm.h
+++ b/inc/hf/arch/mm.h
@@ -161,9 +161,4 @@
/**
* Initializes the arch specific memory management.
*/
-bool arch_mm_init(void);
-
-/**
- * Enables the current CPU with arch specific memory management state.
- */
-void arch_mm_enable(paddr_t table);
+bool arch_mm_init(paddr_t table);
diff --git a/inc/hf/mm.h b/inc/hf/mm.h
index 9d7a433..44b51b8 100644
--- a/inc/hf/mm.h
+++ b/inc/hf/mm.h
@@ -123,4 +123,3 @@
void mm_defrag(struct mm_stage1_locked stage1_locked, struct mpool *ppool);
bool mm_init(struct mpool *ppool);
-void mm_cpu_init(void);