MOS Source Code
|
#include <mos/types.h>
Go to the source code of this file.
Classes | |
struct | platform_process_options_t |
struct | platform_thread_options_t |
struct | platform_cpuinfo_t |
struct | platform_arch_info_t |
Macros | |
#define | MOS_PLATFORM_PAGING_LEVELS 4 |
#define | MOS_PLATFORM_HAS_FDT 1 |
#define | PML2_HUGE_CAPABLE 1 |
#define | PML3_HUGE_CAPABLE 1 |
#define | PML4_HUGE_CAPABLE 1 |
#define | PML1_SHIFT 12 |
#define | PML2_SHIFT 21 |
#define | PML3_SHIFT 30 |
#define | PML4_SHIFT 39 |
#define | PML1_MASK 0x1FFULL |
#define | PML2_MASK 0x1FFULL |
#define | PML3_MASK 0x1FFULL |
#define | PML4_MASK 0x1FFULL |
#define | PML1_ENTRIES 512 |
#define | PML2_ENTRIES 512 |
#define | PML3_ENTRIES 512 |
#define | PML4_ENTRIES 512 |
#define | MOS_USER_END_VADDR 0x00007FFFFFFFFFFF |
#define | MOS_KERNEL_START_VADDR 0xFFFF800000000000 |
#define | MOS_ELF_PLATFORM EM_RISCV |
#define | MOS_PLATFORM_PANIC_INSTR "unimp" |
#define | MOS_PLATFORM_PANIC_POINT_ASM |
#define | MOS_PLATFORM_DEBUG_MODULES(X) |
#define | MOS_PLATFORM_MEMORY_BARRIER() |
#define MOS_PLATFORM_PAGING_LEVELS 4 |
Definition at line 7 of file platform_defs.h.
#define MOS_PLATFORM_HAS_FDT 1 |
Definition at line 9 of file platform_defs.h.
#define PML2_HUGE_CAPABLE 1 |
Definition at line 11 of file platform_defs.h.
#define PML3_HUGE_CAPABLE 1 |
Definition at line 12 of file platform_defs.h.
#define PML4_HUGE_CAPABLE 1 |
Definition at line 13 of file platform_defs.h.
#define PML1_SHIFT 12 |
Definition at line 15 of file platform_defs.h.
Referenced by mm_get_phys_addr().
#define PML2_SHIFT 21 |
Definition at line 16 of file platform_defs.h.
#define PML3_SHIFT 30 |
Definition at line 17 of file platform_defs.h.
#define PML4_SHIFT 39 |
Definition at line 18 of file platform_defs.h.
#define PML1_MASK 0x1FFULL |
Definition at line 20 of file platform_defs.h.
#define PML2_MASK 0x1FFULL |
Definition at line 21 of file platform_defs.h.
#define PML3_MASK 0x1FFULL |
Definition at line 22 of file platform_defs.h.
#define PML4_MASK 0x1FFULL |
Definition at line 23 of file platform_defs.h.
#define PML1_ENTRIES 512 |
Definition at line 25 of file platform_defs.h.
Referenced by pagetable_iter_next(), pml1_destroy_range(), and pml1_traverse().
#define PML2_ENTRIES 512 |
Definition at line 26 of file platform_defs.h.
Referenced by pagetable_iter_next(), pml2_destroy_range(), and pml2_traverse().
#define PML3_ENTRIES 512 |
Definition at line 27 of file platform_defs.h.
Referenced by pagetable_iter_next().
#define PML4_ENTRIES 512 |
Definition at line 28 of file platform_defs.h.
Referenced by mm_create_context(), and pagetable_iter_next().
#define MOS_USER_END_VADDR 0x00007FFFFFFFFFFF |
Definition at line 30 of file platform_defs.h.
Referenced by mm_destroy_context(), mm_dump_pagetable(), mm_get_free_vaddr_locked(), and mmstat_sysfs_pagetable_show().
#define MOS_KERNEL_START_VADDR 0xFFFF800000000000 |
Definition at line 31 of file platform_defs.h.
Referenced by futex_get_key(), invalid_page_fault(), kmemcache_alloc(), mm_create_context(), mm_dump_pagetable(), mm_get_free_vaddr_locked(), mm_map_kernel_pages(), platform_dump_stack(), riscv64_trap_handler(), and x86_dump_stack_at().
#define MOS_ELF_PLATFORM EM_RISCV |
Definition at line 33 of file platform_defs.h.
Referenced by elf_verify_header().
#define MOS_PLATFORM_PANIC_INSTR "unimp" |
Definition at line 35 of file platform_defs.h.
#define MOS_PLATFORM_PANIC_POINT_ASM |
Definition at line 38 of file platform_defs.h.
#define MOS_PLATFORM_DEBUG_MODULES | ( | X | ) |
Definition at line 45 of file platform_defs.h.
#define MOS_PLATFORM_MEMORY_BARRIER | ( | ) |
Definition at line 49 of file platform_defs.h.