git: f54882a86269 - main - Remove special kstack allocation code for mips.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 06 Jan 2022 06:46:18 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=f54882a862691325dfdadb6c99db4955f248c2c7 commit f54882a862691325dfdadb6c99db4955f248c2c7 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-01-06 00:40:28 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-01-06 02:43:56 +0000 Remove special kstack allocation code for mips. The arch required two-pages alignment due to single TLB entry caching two consequtive mappings. Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D33763 --- sys/vm/vm_glue.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index e2f8f861b373..21d49d976e5a 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -298,19 +298,7 @@ vm_thread_stack_create(struct domainset *ds, int pages) /* * 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);