Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132460908
D25034.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
621 B
Referenced Files
None
Subscribers
None
D25034.diff
View Options
Index: head/sys/riscv/riscv/machdep.c
===================================================================
--- head/sys/riscv/riscv/machdep.c
+++ head/sys/riscv/riscv/machdep.c
@@ -130,6 +130,8 @@
extern int *end;
+static char static_kenv[PAGE_SIZE];
+
static void
cpu_startup(void *dummy)
{
@@ -836,6 +838,8 @@
kern_envp = MD_FETCH(kmdp, MODINFOMD_ENVP, char *);
if (kern_envp != NULL)
init_static_kenv(kern_envp, 0);
+ else
+ init_static_kenv(static_kenv, sizeof(static_kenv));
#ifdef DDB
ksym_start = MD_FETCH(kmdp, MODINFOMD_SSYM, uintptr_t);
ksym_end = MD_FETCH(kmdp, MODINFOMD_ESYM, uintptr_t);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 18, 3:14 AM (12 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23859981
Default Alt Text
D25034.diff (621 B)
Attached To
Mode
D25034: riscv: honor the environment set via the kernel config file
Attached
Detach File
Event Timeline
Log In to Comment