diff options
Diffstat (limited to 'kernel/include')
-rw-r--r-- | kernel/include/mm/page_table_allocator.h | 32 | ||||
-rw-r--r-- | kernel/include/mm/virtual_mm.h | 2 |
2 files changed, 34 insertions, 0 deletions
diff --git a/kernel/include/mm/page_table_allocator.h b/kernel/include/mm/page_table_allocator.h new file mode 100644 index 0000000..dc4deb6 --- /dev/null +++ b/kernel/include/mm/page_table_allocator.h @@ -0,0 +1,32 @@ +/* + * bubbl + * Copyright (C) 2025 Raghuram Subramani <raghus2247@gmail.com> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef __mm_page_table_allocator_h +#define __mm_page_table_allocator_h + +#include <stdint.h> + +namespace PageTableAllocator +{ + +uint32_t *allocate(void); +void prepare(void); + +} + +#endif diff --git a/kernel/include/mm/virtual_mm.h b/kernel/include/mm/virtual_mm.h index 70c9510..5230f03 100644 --- a/kernel/include/mm/virtual_mm.h +++ b/kernel/include/mm/virtual_mm.h @@ -72,6 +72,8 @@ namespace VirtualMM { +uint32_t *get_page_directory(void); + /* * Loads a given page directory into CR0 */ |