Page MenuHomeFreeBSD

D33763.diff
No OneTemporary

D33763.diff

diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c
--- a/sys/vm/vm_glue.c
+++ b/sys/vm/vm_glue.c
@@ -298,19 +298,7 @@
/*
* Get a kernel virtual address for this thread's kstack.
*/
-#if defined(__mips__)
- /*
- * We need to align the kstack's mapped address to fit within
- * a single TLB entry.
- */
- if (vmem_xalloc(kernel_arena, (pages + KSTACK_GUARD_PAGES) * PAGE_SIZE,
- PAGE_SIZE * 2, 0, 0, VMEM_ADDR_MIN, VMEM_ADDR_MAX,
- M_BESTFIT | M_NOWAIT, &ks)) {
- ks = 0;
- }
-#else
ks = kva_alloc((pages + KSTACK_GUARD_PAGES) * PAGE_SIZE);
-#endif
if (ks == 0) {
printf("%s: kstack allocation failed\n", __func__);
return (0);

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 13, 9:22 AM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15780185
Default Alt Text
D33763.diff (655 B)

Event Timeline