xlat v1: Provide direct MMU-enabling stubs
authorJeenu Viswambharan <[email protected]>
Fri, 27 Apr 2018 14:06:57 +0000 (15:06 +0100)
committerJeenu Viswambharan <[email protected]>
Wed, 27 Jun 2018 10:31:30 +0000 (11:31 +0100)
An earlier patch split MMU-enabling function for translation library v2.
Although we don't intend to introduce the exact same functionality for
xlat v1, this patch introduces stubs for directly enabling MMU to
maintain API-compatibility.

Change-Id: Id7d56e124c80af71de999fcda10f1734b50bca97
Signed-off-by: Jeenu Viswambharan <[email protected]>
lib/xlat_tables/aarch32/xlat_tables.c
lib/xlat_tables/aarch64/xlat_tables.c

index 720d4461d56c749aa1cb664cb06a5a8836d1d5a8..dd639397a669cc5c8e3b835ca2ba85b4cd3096b8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -130,3 +130,8 @@ void enable_mmu_secure(unsigned int flags)
        /* Ensure the MMU enable takes effect immediately */
        isb();
 }
+
+void enable_mmu_direct(unsigned int flags)
+{
+       enable_mmu_secure(flags);
+}
index a72c6454c6ac5731b3324f92b6afeb42a453d89c..5717516a4c0dbcc7e77dde8c617a4f9c75c8c5da 100644 (file)
@@ -181,6 +181,11 @@ void init_xlat_tables(void)
                                                                        \
                /* Ensure the MMU enable takes effect immediately */    \
                isb();                                                  \
+       }                                                               \
+                                                                       \
+       void enable_mmu_direct_el##_el(unsigned int flags)              \
+       {                                                               \
+               enable_mmu_el##_el(flags);                              \
        }
 
 /* Define EL1 and EL3 variants of the function enabling the MMU */