Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108674131
D25544.id74007.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
694 B
Referenced Files
None
Subscribers
None
D25544.id74007.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25544: riscv: look for bootargs in FDT
Attached
Detach File
Event Timeline
Log In to Comment