summaryrefslogtreecommitdiff
path: root/kern/slab.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-02 16:20:44 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-09-14 14:45:06 +0200
commit7123adf2541a4a804edccd3a0393717c2f6d658c (patch)
tree590c23b543b514fa71e7446b5c0fcabb5b38db93 /kern/slab.c
parentdaf6353b9fd988e5d35657b1aaf21d5b69ba0c4f (diff)
kern: allocate kernel stacks using the slab allocator
* kern/slab.c (kmem_cache_init): Relax alignment restriction. * kern/thread.c (stack_cache): New variable. (stack_alloc): Use the slab allocator. (stack_collect): Adjust accordingly. (thread_init): Initialize `stack_cache'.
Diffstat (limited to 'kern/slab.c')
-rw-r--r--kern/slab.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kern/slab.c b/kern/slab.c
index 1114cfa..5140130 100644
--- a/kern/slab.c
+++ b/kern/slab.c
@@ -800,7 +800,6 @@ void kmem_cache_init(struct kmem_cache *cache, const char *name,
assert(obj_size > 0);
assert(ISP2(align));
- assert(align < PAGE_SIZE);
buf_size = P2ROUND(obj_size, align);