#include <grub/multiboot2.h>
Go to the source code of this file.
◆ pmem_alloc()
void* pmem_alloc |
( |
int |
num_pages | ) |
|
Allocate physical frames
- Parameters
-
num_pages | The number of frames to allocate |
- Returns
- the physical address of the allocated frames
◆ pmem_free()
void pmem_free |
( |
void * |
start, |
|
|
int |
num_pages |
|
) |
| |
Free allocated physical frames
- Parameters
-
start | The address to start freeing at. |
num_pages | The number of frames to free |
◆ pmem_init()
void pmem_init |
( |
struct multiboot_boot_header_tag * |
tags | ) |
|
Initialize the physical memory manager
- Parameters
-