Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177700046
D61684.1795072146.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
732 B
Referenced Files
None
Subscribers
None
D61684.1795072146.diff
View Options
diff --git a/usr.sbin/bhyve/riscv/bhyverun_machdep.c b/usr.sbin/bhyve/riscv/bhyverun_machdep.c
--- a/usr.sbin/bhyve/riscv/bhyverun_machdep.c
+++ b/usr.sbin/bhyve/riscv/bhyverun_machdep.c
@@ -74,6 +74,7 @@
#define FDT_SIZE (64 * 1024)
#define FDT_DTB_ALIGN 8
+#define FDT_PADDING (2 * 1024 * 1024UL)
/* Start of lowmem + 64K */
#define UART_MMIO_BASE 0x10000
@@ -361,7 +362,8 @@
snprintf(isa, sizeof(isa), "%s%s", "rv64imafdc",
retval == 1 ? "_sstc" : "");
- fdt_gpa = vm_get_highmem_base(ctx) + roundup2(len, FDT_DTB_ALIGN);
+ fdt_gpa = vm_get_highmem_base(ctx) + roundup2(len + FDT_PADDING,
+ FDT_DTB_ALIGN);
error = fdt_init(ctx, guest_ncpus, fdt_gpa, FDT_SIZE, isa);
if (error != 0)
return (error);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 19, 7:09 AM (12 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41829723
Default Alt Text
D61684.1795072146.diff (732 B)
Attached To
Mode
D61684: bhyve/riscv: prevent FDT and kernel BSS overlap when booting flat kernel
Attached
Detach File
Event Timeline