XenevaOS
Loading...
Searching...
No Matches
Functions | Variables
paging.cpp File Reference
#include "paging.h"
#include "physm.h"
#include "clib.h"
#include "xnout.h"
#include "lowlevel.h"
Include dependency graph for paging.cpp:

Functions

void PRINTTCR (uint64_t rtc)
 
size_t pml4_index (uint64_t virt)
 
size_t pdpt_index (uint64_t virt)
 
void XEMapMMIO (uint64_t *l1_table, uint64_t va, uint64_t pa)
 
void tlb_flush_all ()
 
void XEPagingInitialize ()
 
void XEPagingCopy ()
 
void XEPagingMap (uint64_t virtualAddr, uint64_t physAddr)
 

Variables

uint64_tl0_table_base
 

Function Documentation

◆ pdpt_index()

size_t pdpt_index ( uint64_t  virt)

◆ pml4_index()

size_t pml4_index ( uint64_t  virt)

◆ PRINTTCR()

void PRINTTCR ( uint64_t  rtc)

◆ tlb_flush_all()

void tlb_flush_all ( )

◆ XEMapMMIO()

void XEMapMMIO ( uint64_t l1_table,
uint64_t  va,
uint64_t  pa 
)

◆ XEPagingCopy()

void XEPagingCopy ( )

◆ XEPagingInitialize()

void XEPagingInitialize ( )

◆ XEPagingMap()

void XEPagingMap ( uint64_t  virtualAddr,
uint64_t  physAddr 
)

Variable Documentation

◆ l0_table_base

uint64_t* l0_table_base

BSD 2-Clause License

Copyright (c) 2023-2025, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.