All checks were successful
Build documentation / build-and-deploy (push) Successful in 26s
19 lines
295 B
C
19 lines
295 B
C
#ifndef _KERNEL_AMD64_MM_H
|
|
#define _KERNEL_AMD64_MM_H
|
|
|
|
#include <libk/std.h>
|
|
#include <sync/spin_lock.h>
|
|
|
|
#define PAGE_SIZE 4096
|
|
|
|
struct pd {
|
|
spin_lock_t lock;
|
|
uintptr_t cr3_paddr;
|
|
atomic_int refs;
|
|
};
|
|
|
|
void amd64_load_kernel_cr3 (void);
|
|
void mm_init2 (void);
|
|
|
|
#endif // _KERNEL_AMD64_MM_H
|