XenevaOS
Loading...
Searching...
No Matches
pmmngr.h
Go to the documentation of this file.
1
32#ifndef __PMMNGR_H__
33#define __PMMNGR_H__
34
35#include <aurora.h>
36
42extern void AuPmmngrInitialize(KERNEL_BOOT_INFO *info);
43
49
56
62
68AU_EXTERN AU_EXPORT void AuPmmngrFreeBlocks(void* Addr, int Count);
69
75
81
86extern void AuPmmngrMoveHigher();
87
93
99#endif
#define AU_EXTERN
Definition aurora.h:50
#define AU_EXPORT
Definition aurora.h:38
COMPILER_DEPENDENT_UINT64 uint64_t
Definition acefiex.h:165
ACPI_PHYSICAL_ADDRESS Address
Definition acpixf.h:637
void AuPmmngrInitialize(KERNEL_BOOT_INFO *info)
AuPmmngrInitialise – initialise the physical memory manager.
Definition pmmngr.cpp:136
AU_EXTERN AU_EXPORT void * AuPmmngrAlloc()
AuPmmngrAlloc – Allocate a single physical page frame and return it to the caller.
Definition pmmngr.cpp:209
AU_EXTERN AU_EXPORT void AuPmmngrFreeBlocks(void *Addr, int Count)
AuPmmngrFreeBlocks – Free multiple page frames.
Definition pmmngr.cpp:258
AU_EXTERN AU_EXPORT uint64_t P2V(uint64_t addr)
P2V – Physical to Virtual conversion.
Definition pmmngr.cpp:270
uint64_t AuPmmngrGetFreeMem()
AuPmmngrGetFreeMem – returns the total free amount of RAM.
Definition pmmngr.cpp:301
AU_EXTERN AU_EXPORT void * AuPmmngrAllocBlocks(int num)
AuPmmngrAllocBlocks – Allocate multiple physical page frames and return the first page pointer to the...
Definition pmmngr.cpp:229
void AuPmmngrMoveHigher()
AuPmmngrMoveHigher – moves the kernel to higher half of memory.
Definition pmmngr.cpp:292
uint64_t AuPmmngrGetTotalMem()
AuPmmngrGetTotalMem – returns the total amount of RAM.
Definition pmmngr.cpp:309
AU_EXTERN AU_EXPORT uint64_t V2P(uint64_t vaddr)
V2P – Virtual to Physical conversion.
Definition pmmngr.cpp:281
AU_EXTERN AU_EXPORT void AuPmmngrFree(void *Address)
AuPmmngrFree – Free a physical page frame.
Definition pmmngr.cpp:241
Definition aurora.h:99