Virtual memory and dlmalloc
This commit is contained in:
19
kernel/vmm/vmm.h
Normal file
19
kernel/vmm/vmm.h
Normal file
@ -0,0 +1,19 @@
|
||||
#ifndef VMM_VMM_H_
|
||||
#define VMM_VMM_H_
|
||||
|
||||
#include <stddef.h>
|
||||
#include "bitmap/bitmap.h"
|
||||
#include "spinlock/spinlock.h"
|
||||
|
||||
typedef struct {
|
||||
SpinLock spinlock;
|
||||
BitMap self;
|
||||
} VirtMem;
|
||||
|
||||
extern VirtMem VIRT_MEM;
|
||||
|
||||
void vmm_init(void);
|
||||
void *vmm_alloc(size_t pages);
|
||||
void vmm_free(void *ptr, size_t pages);
|
||||
|
||||
#endif // VMM_VMM_H_
|
Reference in New Issue
Block a user