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