From 66fa48d924d6898c97eb29a1165bbbc0f08c6ab4 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