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-08-28 15:48:04 +0200
commit66fa48d924d6898c97eb29a1165bbbc0f08c6ab4 (patch)
tree6b4798c6fd55f97fad06f7b4d854fa23a4f84d27 /kern/slab.c
parentff7a6dae1e8a6a4d5ce4591b682116e22e76dc18 (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);