diff options
author | marcel <marcel@FreeBSD.org> | 2003-06-01 05:57:58 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-06-01 05:57:58 +0000 |
commit | 2d3c5aba3db0c919fd3d9f32af2b4789cc6d2c8d (patch) | |
tree | 281ce8a14c391927f8a9474223d8546169140cd9 /sys/kern | |
parent | 606016928a8d12daa870438804bb9746846bf219 (diff) | |
download | FreeBSD-src-2d3c5aba3db0c919fd3d9f32af2b4789cc6d2c8d.zip FreeBSD-src-2d3c5aba3db0c919fd3d9f32af2b4789cc6d2c8d.tar.gz |
Remove the ia64 hackery in threadinit() that was needed to work around
the lameness of the kstack code. The EPC overhaul de-lame-ified the
kstack code by removing the need for contigmalloc(). We can now
allocate stacks using malloc(). We probably want to make the stacks
swappable as well so that we can make it MI. But that's another story.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_kse.c | 14 | ||||
-rw-r--r-- | sys/kern/kern_thread.c | 14 |
2 files changed, 0 insertions, 28 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index 6d61cd6..34ebffb 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -762,23 +762,9 @@ void threadinit(void) { -#ifndef __ia64__ thread_zone = uma_zcreate("THREAD", sched_sizeof_thread(), thread_ctor, thread_dtor, thread_init, thread_fini, UMA_ALIGN_CACHE, 0); -#else - /* - * XXX the ia64 kstack allocator is really lame and is at the mercy - * of contigmallloc(). This hackery is to pre-construct a whole - * pile of thread structures with associated kernel stacks early - * in the system startup while contigmalloc() still works. Once we - * have them, keep them. Sigh. - */ - thread_zone = uma_zcreate("THREAD", sched_sizeof_thread(), - thread_ctor, thread_dtor, thread_init, thread_fini, - UMA_ALIGN_CACHE, UMA_ZONE_NOFREE); - uma_prealloc(thread_zone, 512); /* XXX arbitary */ -#endif ksegrp_zone = uma_zcreate("KSEGRP", sched_sizeof_ksegrp(), NULL, NULL, ksegrp_init, NULL, UMA_ALIGN_CACHE, 0); diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 6d61cd6..34ebffb 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -762,23 +762,9 @@ void threadinit(void) { -#ifndef __ia64__ thread_zone = uma_zcreate("THREAD", sched_sizeof_thread(), thread_ctor, thread_dtor, thread_init, thread_fini, UMA_ALIGN_CACHE, 0); -#else - /* - * XXX the ia64 kstack allocator is really lame and is at the mercy - * of contigmallloc(). This hackery is to pre-construct a whole - * pile of thread structures with associated kernel stacks early - * in the system startup while contigmalloc() still works. Once we - * have them, keep them. Sigh. - */ - thread_zone = uma_zcreate("THREAD", sched_sizeof_thread(), - thread_ctor, thread_dtor, thread_init, thread_fini, - UMA_ALIGN_CACHE, UMA_ZONE_NOFREE); - uma_prealloc(thread_zone, 512); /* XXX arbitary */ -#endif ksegrp_zone = uma_zcreate("KSEGRP", sched_sizeof_ksegrp(), NULL, NULL, ksegrp_init, NULL, UMA_ALIGN_CACHE, 0); |