std1.0.0-beta-7 SafeC docs

std :: kernel::mmu

Struct std::MmuAArch64

#include <std/kernel/mmu.h> source

struct MmuAArch64 { }

Leaves use MAIR attribute index 0 for normal memory and 1 for device memory (program MAIR_EL1 with Attr0 = 0xFF, Attr1 = 0x04), inner-shareable, AF set. TCR_EL1 must select a 4 KiB granule and T0SZ = 16.

Methods

§int levels() constsource · definition
§int shift(int level) constsource · definition
§unsigned long entries(int level) constsource · definition
§unsigned long esize() constsource · definition
§unsigned long long table_desc(unsigned long phys) constsource · definition
§unsigned long long leaf_desc(unsigned long phys, unsigned int flags) constsource · definition
§int valid(unsigned long long e) constsource · definition
§int is_leaf(unsigned long long e, int level) constsource · definition
§unsigned long addr(unsigned long long e, int level) constsource · definition
§int load_root(unsigned long root) constsource · definition
§int flush_all() constsource · definition
§int flush_page(unsigned long virt) constsource · definition