Enable cache on ARM U-Boot port.
Without it the port is reidiculously slow.
This commit is contained in:
parent
943981ff65
commit
bbc52c228f
9 changed files with 182 additions and 3 deletions
|
@ -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[];
|
||||
|
@ -107,6 +108,11 @@ grub_machine_init (void)
|
|||
/* Enumerate memory and initialize the memory management system. */
|
||||
grub_uboot_mm_init ();
|
||||
|
||||
/* Should 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue