First steps: getting memory map from Limine request and looking at it
This commit is contained in:
16
src/mem/paging/paging.h
Normal file
16
src/mem/paging/paging.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef PAGING_PMM_H
|
||||
#define PAGING_PMM_H
|
||||
|
||||
/*
|
||||
We are going to use a bitmap, consisting of an array of uint64_t
|
||||
to represent pages for the PMM (physical memory manager).
|
||||
|
||||
Bit set (1) = page used
|
||||
Bit clear (0) = page free
|
||||
|
||||
*/
|
||||
|
||||
#define PAGE_SIZE 4096
|
||||
#define BITS_PER_ROW 64
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user