boot_mmu.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Copyright (C) 2017 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _BOOT_MMU_H_
  13. #define _BOOT_MMU_H_
  14. #include "osi_compiler.h"
  15. OSI_EXTERN_C_BEGIN
  16. /**
  17. * \brief enable MMU
  18. *
  19. * For 8910, two pieces of memory are needed for TTB. The symbol names are:
  20. * - __mmu_ttbl1_start: it is 16KB size and 16KB aligned
  21. * - __mmu_ttbl2_start: it is 1KB size and 1KB aligned
  22. *
  23. * For 8850, one piece of memory is needed for TTB. The symbol name is
  24. * __mmu_ttbl1_start, it is 16KB size and 16KB aligned.
  25. */
  26. void bootMmuEnable(void);
  27. /**
  28. * @brief disable MMU
  29. */
  30. void bootMmuDisable(void);
  31. OSI_EXTERN_C_END
  32. #endif