Functions | Variables
test_map_ptr_x64.cpp File Reference

Go to the source code of this file.

Functions

void __invlpg (const void *virt) noexcept
 
void __clflush (void *addr) noexcept
 

Variables

constexpr const auto valid_virt = 0x0000111100000000UL
 
constexpr const auto valid_phys = 0x0000222200000000UL
 
constexpr const auto invalid_virt = 0x0U
 
constexpr const auto invalid_phys = 0x0U
 
constexpr const auto phys_offset = 0x10U
 
constexpr const auto valid_map = valid_virt + phys_offset
 
std::map< const void *, bool > g_freed
 
std::map< const void *, bool > g_flushed
 
std::map< const void *, bool > g_cache_flushed
 
std::map< memory_manager_x64::integer_pointer, memory_manager_x64::integer_pointerg_mapped
 
std::map< memory_manager_x64::integer_pointer, bool > g_unmapped
 
x64::memory_attr::attr_type read_write = x64::memory_attr::rw_wb
 
auto g_pte_valid_present = true
 
auto g_pte_valid_phys_addr = true
 
auto g_pte_large_page = false
 
auto g_pte_large_page_count = 0
 
auto g_pte_large_page_reset = 0
 

Function Documentation

◆ __invlpg()

void __invlpg ( const void *  virt)
noexcept

Definition at line 47 of file test_map_ptr_x64.cpp.

◆ __clflush()

void __clflush ( void *  addr)
noexcept

Definition at line 51 of file test_map_ptr_x64.cpp.

Variable Documentation

◆ valid_virt

constexpr const auto valid_virt = 0x0000111100000000UL

Definition at line 31 of file test_map_ptr_x64.cpp.

◆ valid_phys

constexpr const auto valid_phys = 0x0000222200000000UL

Definition at line 32 of file test_map_ptr_x64.cpp.

◆ invalid_virt

constexpr const auto invalid_virt = 0x0U

Definition at line 33 of file test_map_ptr_x64.cpp.

◆ invalid_phys

constexpr const auto invalid_phys = 0x0U

Definition at line 34 of file test_map_ptr_x64.cpp.

◆ phys_offset

constexpr const auto phys_offset = 0x10U

Definition at line 35 of file test_map_ptr_x64.cpp.

◆ valid_map

constexpr const auto valid_map = valid_virt + phys_offset

Definition at line 36 of file test_map_ptr_x64.cpp.

◆ g_freed

std::map<const void *, bool> g_freed

Definition at line 38 of file test_map_ptr_x64.cpp.

◆ g_flushed

std::map<const void *, bool> g_flushed

Definition at line 39 of file test_map_ptr_x64.cpp.

◆ g_cache_flushed

std::map<const void *, bool> g_cache_flushed

Definition at line 40 of file test_map_ptr_x64.cpp.

◆ g_mapped

Definition at line 41 of file test_map_ptr_x64.cpp.

◆ g_unmapped

std::map<memory_manager_x64::integer_pointer, bool> g_unmapped

Definition at line 42 of file test_map_ptr_x64.cpp.

◆ read_write

Definition at line 44 of file test_map_ptr_x64.cpp.

◆ g_pte_valid_present

auto g_pte_valid_present = true

Definition at line 54 of file test_map_ptr_x64.cpp.

◆ g_pte_valid_phys_addr

auto g_pte_valid_phys_addr = true

Definition at line 55 of file test_map_ptr_x64.cpp.

◆ g_pte_large_page

auto g_pte_large_page = false

Definition at line 56 of file test_map_ptr_x64.cpp.

◆ g_pte_large_page_count

auto g_pte_large_page_count = 0

Definition at line 57 of file test_map_ptr_x64.cpp.

◆ g_pte_large_page_reset

auto g_pte_large_page_reset = 0

Definition at line 58 of file test_map_ptr_x64.cpp.