case 'h':
/* If this is the whole disk, just return its own data. */
+ grub_printf ("parent handle = %p\n", d->handle);
if (! disk->partition)
return d->handle;
struct grub_efidisk_data *c;
devices = make_devices ();
- FOR_CHILDREN (c, devices)
+ grub_efi_print_device_path (d->device_path);
+ for (c = devices; c; c = c->next)
{
grub_efi_hard_drive_device_path_t *hd;
hd = (grub_efi_hard_drive_device_path_t *) c->last_device_path;
- if ((GRUB_EFI_DEVICE_PATH_TYPE (c->last_device_path)
+ grub_efi_print_device_path (c->device_path);
+ grub_printf ("part %d = %x, %x, %x, %x, %x, %x\n",
+ is_child (c, d),
+ (int) GRUB_EFI_DEVICE_PATH_TYPE (c->last_device_path),
+ (int) GRUB_EFI_DEVICE_PATH_SUBTYPE (c->last_device_path),
+ (int) hd->partition_start, (int) hd->partition_size,
+ (int) grub_partition_get_start (disk->partition),
+ (int) grub_partition_get_len (disk->partition));
+
+ if (is_child (c, d)
+ && (GRUB_EFI_DEVICE_PATH_TYPE (c->last_device_path)
== GRUB_EFI_MEDIA_DEVICE_PATH_TYPE)
&& (GRUB_EFI_DEVICE_PATH_SUBTYPE (c->last_device_path)
== GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE)
FUNCTION(grub_arm_cache_type)
mrc p15, 0, r0, c0, c0, 1
- bx lr
\ No newline at end of file
+ bx lr
+
+FUNCTION(grub_arm_cache_enable)
+ mrc p15, 0, r0, c1, c0, 0
+ orr r0, r0, #(1 << 12)
+ orr r0, r0, #(1 << 2)
+ orr r0, r0, #(1 << 0)
+ mcr p15, 0, r0, c1, c0, 0
+ bx lr
const char *file_name;
grub_file_filter_id_t filter;
+ grub_boot_time ("Opening '%s'", name);
+
device_name = grub_file_get_device_name (name);
if (grub_errno)
goto fail;
}
#endif
+void grub_arm_cache_enable (void);
+
void
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 ();
if (! dp)
{
- grub_error (GRUB_ERR_BAD_DEVICE, "not a valid root device");
+ grub_error (GRUB_ERR_BAD_DEVICE, "not a valid root device (%p, %p)",
+ dev_handle, dp);
goto fail;
}
{
if (! grub_no_modules)
{
+ grub_boot_time ("Reading commands");
read_command_list (val);
+ grub_boot_time ("Reading filesystems");
read_fs_list (val);
+ grub_boot_time ("Reading crypto");
read_crypto_list (val);
+ grub_boot_time ("Reading terminal");
read_terminal_list (val);
}
+ grub_boot_time ("Reading gettext");
grub_gettext_reread_prefix (val);
+ grub_boot_time ("Lists reread");
}
static char *