Page MenuHomeFreeBSD

D25544.id74007.diff
No OneTemporary

D25544.id74007.diff

Index: sys/riscv/riscv/machdep.c
===================================================================
--- sys/riscv/riscv/machdep.c
+++ sys/riscv/riscv/machdep.c
@@ -41,6 +41,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>
@@ -1101,6 +1102,14 @@
panic("Cannot get physical memory regions");
}
physmem_hardware_regions(mem_regions, mem_regions_sz);
+
+ /* See if we've been given arguments via fdt */
+ {
+ char bootargs[256];
+ if (fdt_get_chosen_bootargs(bootargs, sizeof bootargs) == 0) {
+ boothowto |= boot_parse_cmdline(bootargs);
+ }
+ }
#endif
/* Do basic tuning, hz etc */

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 28, 5:44 AM (2 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16204413
Default Alt Text
D25544.id74007.diff (694 B)

Event Timeline