Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107104648
D39852.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D39852.diff
View Options
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c
--- a/sys/kern/link_elf.c
+++ b/sys/kern/link_elf.c
@@ -724,6 +724,7 @@
ef->vnet_start = 0;
ef->vnet_stop = 0;
+ ef->vnet_base = 0;
error = link_elf_lookup_set(&ef->lf, "vnet", (void ***)&ef->vnet_start,
(void ***)&ef->vnet_stop, NULL);
/* Error just means there is no vnet data set to relocate. */
@@ -766,7 +767,6 @@
return (ENOSPC);
}
memcpy((void *)ef->vnet_base, (void *)ef->vnet_start, size);
- vnet_data_copy((void *)ef->vnet_base, size);
elf_set_add(&set_vnet_list, ef->vnet_start, ef->vnet_stop,
ef->vnet_base);
diff --git a/sys/kern/link_elf_obj.c b/sys/kern/link_elf_obj.c
--- a/sys/kern/link_elf_obj.c
+++ b/sys/kern/link_elf_obj.c
@@ -546,7 +546,6 @@
}
memcpy(vnet_data, ef->progtab[pb].addr,
ef->progtab[pb].size);
- vnet_data_copy(vnet_data, shdr[i].sh_size);
ef->progtab[pb].addr = vnet_data;
#endif
} else if ((ef->progtab[pb].name != NULL &&
@@ -1113,18 +1112,11 @@
error = EINVAL;
goto out;
}
- /* Initialize the per-cpu or vnet area. */
+ /* Initialize the per-cpu area. */
if (ef->progtab[pb].addr != (void *)mapbase &&
!strcmp(ef->progtab[pb].name, DPCPU_SETNAME))
dpcpu_copy(ef->progtab[pb].addr,
shdr[i].sh_size);
-#ifdef VIMAGE
- else if (ef->progtab[pb].addr !=
- (void *)mapbase &&
- !strcmp(ef->progtab[pb].name, VNET_SETNAME))
- vnet_data_copy(ef->progtab[pb].addr,
- shdr[i].sh_size);
-#endif
} else
bzero(ef->progtab[pb].addr, shdr[i].sh_size);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 4:36 AM (18 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15750203
Default Alt Text
D39852.diff (1 KB)
Attached To
Mode
D39852: kernel linkers: Eliminate unneeded vnet propagation
Attached
Detach File
Event Timeline
Log In to Comment