12 lines
315 B
C
12 lines
315 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#include <kernel/proc.h>
|
|
#include <kernel/slab.h>
|
|
|
|
mem_cache_t *proc_slab;
|
|
mem_cache_t *thread_slab;
|
|
|
|
void proc_init()
|
|
{
|
|
proc_slab = slab_create("proc_slab", sizeof(struct proc), 1 * MB, 8);
|
|
thread_slab = slab_create("thread_slab", sizeof(struct thread), 1 * MB, 8);
|
|
}
|