diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-04 15:17:55 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-04 15:19:00 +0530 |
commit | 869d9bcea81b2ad439cd4498eabc1136e945d2ce (patch) | |
tree | 8dac300410569fdeadb7d18677b4626e82db3efc /kernel/include/mm/page_table_allocator.h | |
parent | 1ac479c99f2d4548285893e76df4e0ffe9ce42cc (diff) |
mm: virtual_mm: Write a basic page table allocator
Diffstat (limited to 'kernel/include/mm/page_table_allocator.h')
-rw-r--r-- | kernel/include/mm/page_table_allocator.h | 32 |
1 files changed, 32 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 |