1/*
2 * Copyright 2017, 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
13#pragma once
14
15#include <autoconf.h>
16
17
18#ifdef CONFIG_ARM_HYPERVISOR_SUPPORT
19
20#if defined(CONFIG_ARM_PA_SIZE_BITS_44)
21
22#define VSPACE_NUM_LEVELS       4
23
24#elif defined(CONFIG_ARM_PA_SIZE_BITS_40)
25
26#define VSPACE_NUM_LEVELS 3
27
28#else
29#error Unspecified PA size bits
30#endif
31
32#else /* CONFIG_ARM_HYPERVISOR_SUPPORT */
33
34#define VSPACE_NUM_LEVELS 4
35
36#endif /* end of !CONFIG_ARM_HYPERVISOR_SUPPORT */
37
38#define VSPACE_MAP_PAGING_OBJECTS   5
39#define VSPACE_LEVEL_BITS 9
40