From 7123adf2541a4a804edccd3a0393717c2f6d658c Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Thu, 2 Jul 2015 16:20:44 +0200 Subject: 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'. --- kern/slab.c | 1 - 1 file changed, 1 deletion(-) (limited to 'kern/slab.c') 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); -- cgit v1.2.3