[kernel] Move slab_allocated items to the heap

Allocate the slabs for slab-allocated items to the heap, now that heap
regions are aligned. This also lets the slab sizes be non-page-sized.
This commit is contained in:
Justin C. Miller
2022-10-11 18:52:19 -07:00
parent c9bcc87511
commit e830a3d37b
4 changed files with 7 additions and 22 deletions

View File

@@ -7,6 +7,7 @@
#include <util/map.h>
#include <util/spinlock.h>
#include "memory.h"
#include "objects/kobject.h"
#include "slab_allocated.h"
#include "wait_queue.h"
@@ -79,7 +80,7 @@ private:
struct mailbox::message :
public slab_allocated<message, 1>
public slab_allocated<message, mem::frame_size>
{
uint64_t tag;
uint64_t subtag;