Page MenuHomeFreeBSD

D25544.id.diff
No OneTemporary

D25544.id.diff

Index: head/sys/riscv/riscv/machdep.c
===================================================================
--- head/sys/riscv/riscv/machdep.c
+++ head/sys/riscv/riscv/machdep.c
@@ -40,6 +40,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/boot.h>
#include <sys/buf.h>
#include <sys/bus.h>
#include <sys/cons.h>
@@ -800,6 +801,19 @@
rvbp->kern_phys, rvbp->kern_phys + (lastaddr - KERNBASE));
}
+#ifdef FDT
+static void
+parse_fdt_bootargs(void)
+{
+ char bootargs[512];
+
+ bootargs[sizeof(bootargs) - 1] = '\0';
+ if (fdt_get_chosen_bootargs(bootargs, sizeof(bootargs) - 1) == 0) {
+ boothowto |= boot_parse_cmdline(bootargs);
+ }
+}
+#endif
+
static vm_offset_t
parse_metadata(void)
{
@@ -829,6 +843,8 @@
#endif
#ifdef FDT
try_load_dtb(kmdp);
+ if (kern_envp == NULL)
+ parse_fdt_bootargs();
#endif
return (lastaddr);
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 24, 6:38 PM (5 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27903707
Default Alt Text
D25544.id.diff (867 B)

Event Timeline