Xyris  0.5
paging.cpp File Reference
#include <Arch/Arch.hpp>
#include <Arch/Memory.hpp>
#include <Bootloader/Arguments.hpp>
#include <Library/Bitset.hpp>
#include <Locking/RAII.hpp>
#include <Library/stdio.hpp>
#include <Library/string.hpp>
#include <Memory/Physical.hpp>
#include <Memory/paging.hpp>
#include <Support/sections.hpp>
#include <Panic.hpp>
#include <Logger.hpp>
#include <stddef.h>
+ Include dependency graph for paging.cpp:

Go to the source code of this file.

Namespaces

 Memory
 

Macros

#define PAGE_COUNT(s)   ((s) / ARCH_PAGE_SIZE) + 1;
 
#define MAPPING_OUTPUT_FLAG   "--enable-mapping-output"
 

Functions

 Memory::KERNEL_PARAM (enableMappingLogs, MAPPING_OUTPUT_FLAG, argumentsCallback)
 
void Memory::init (MemoryMap *map)
 
void Memory::mapKernelPage (Arch::Memory::Address vaddr, Arch::Memory::Address paddr)
 
void Memory::mapKernelRangeVirtual (Section sect)
 
void Memory::mapKernelRangePhysical (Section sect)
 
void * Memory::newPage (size_t size)
 
void Memory::freePage (void *page, size_t size)
 
bool Memory::isPresent (uintptr_t addr)
 
uintptr_t Memory::getPageDirPhysAddr ()
 

Detailed Description

Author
Keeton Feavel (keeto.nosp@m.nfea.nosp@m.vel@c.nosp@m.edar.nosp@m.ville.nosp@m..edu)
Micah Switzer (mswit.nosp@m.zer@.nosp@m.cedar.nosp@m.vill.nosp@m.e.edu)
Version
0.3
Date
2019-11-22

Definition in file paging.cpp.

Macro Definition Documentation

◆ MAPPING_OUTPUT_FLAG

#define MAPPING_OUTPUT_FLAG   "--enable-mapping-output"

Definition at line 54 of file paging.cpp.

◆ PAGE_COUNT

#define PAGE_COUNT (   s)    ((s) / ARCH_PAGE_SIZE) + 1;

Definition at line 26 of file paging.cpp.