Skip to content

Commit

Permalink
protos/linux: Remove unnecessary UEFI check
Browse files Browse the repository at this point in the history
  • Loading branch information
marv7000 committed Oct 18, 2024
1 parent c35b1ea commit 444bf22
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions common/protos/linux_risc.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,13 @@ void *prepare_device_tree_blob(char *config, char *cmdline) {
if (dtb_path) {
struct file_handle *dtb_file;
if ((dtb_file = uri_open(dtb_path)) == NULL)
panic(true, "limine: Failed to open device tree blob with path `%#`. Is the path correct?", dtb_path);
panic(true, "linux: Failed to open device tree blob with path `%#`. Is the path correct?", dtb_path);

dtb = freadall(dtb_file, MEMMAP_BOOTLOADER_RECLAIMABLE);
fclose(dtb_file);
} else {
#if defined (UEFI)
// Hopefully 4K should be enough (mainly depends on the length of cmdline).
dtb = get_device_tree_blob(0x1000);
#else
break;
#endif
}

int ret;
Expand Down

0 comments on commit 444bf22

Please sign in to comment.