ARM cache

This commit is contained in:
Vladimir Serbinenko committed 2013-12-23 04:14:24 +01:00
1 parent 4b03082fa9
commit b2b8ed7032
6 files changed
+202 -47

No files matched your search

+6 -6
View File
@@ -31,6 +31,7 @@
#include <grub/uboot/uboot.h>
#include <grub/uboot/api_public.h>
#include <grub/cpu/system.h>
#include <grub/cache.h>
extern char __bss_start[];
extern char _end[];
@@ -83,8 +84,6 @@ rpi_timer_ms (void)
}
#endif
void grub_arm_cache_enable (void);
void
grub_machine_init (void)
{
@@ -103,16 +102,17 @@ grub_machine_init (void)
grub_uboot_puts ("invalid U-Boot API version\n");
}
#ifdef __arm__
grub_arm_cache_enable ();
#endif
/* Initialize the console so that GRUB can display messages. */
grub_console_init_early ();
/* Enumerate memory and initialize the memory management system. */
grub_uboot_mm_init ();
/* Shold be earlier but it needs memalign. */
#ifdef __arm__
grub_arm_enable_caches_mmu ();
#endif
grub_dprintf ("init", "__bss_start: %p\n", __bss_start);
grub_dprintf ("init", "_end: %p\n", _end);
grub_dprintf ("init", "grub_modbase: %p\n", (void *) grub_modbase);