1/* 2 * Copyright 2018, Data61 3 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) 4 * ABN 41 687 119 230. 5 * 6 * This software may be distributed and modified according to the terms of 7 * the BSD 2-Clause license. Note that NO WARRANTY is provided. 8 * See "LICENSE_BSD2.txt" for details. 9 * 10 * @TAG(DATA61_BSD) 11 */ 12#pragma once 13 14#include <autoconf.h> 15#include <sel4utils/gen_config.h> 16 17#if CONFIG_PT_LEVELS == 2 18#define VSPACE_LEVEL_BITS 10 19#elif CONFIG_PT_LEVELS == 3 20#define VSPACE_LEVEL_BITS 9 21#elif CONFIG_PT_LEVELS == 4 22#define VSPACE_LEVEL_BITS 9 23#else 24#error "Unsupported PT level" 25#endif 26 27#define VSPACE_MAP_PAGING_OBJECTS 5 28 29#define VSPACE_NUM_LEVELS CONFIG_PT_LEVELS 30 31