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-26 16:29:35 +0200
commit09ba8aa93ee00301e8d8eff409e8ab4517622fe6 (patch)
tree64885b83bce3a648e701d0b83819b377849b720f /kern/slab.c
parent3ad79fc55e20d619efe0421b1d1d42377450da7e (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);