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#ifndef __LIBSEL4_SEL4_SEL4_ARCH_MAPPING_H_
14#define __LIBSEL4_SEL4_SEL4_ARCH_MAPPING_H_
15
16#define SEL4_MAPPING_LOOKUP_LEVEL 2
17#define SEL4_MAPPING_LOOKUP_NO_PT 21
18#define SEL4_MAPPING_LOOKUP_NO_PD 30
19#define SEL4_MAPPING_LOOKUP_NO_PDPT 39
20
21LIBSEL4_INLINE_FUNC seL4_Word seL4_MappingFailedLookupLevel(void)
22{
23    return seL4_GetMR(SEL4_MAPPING_LOOKUP_LEVEL);
24}
25
26#endif /* __LIBSEL4_SEL4_SEL4_ARCH_MAPPING_H_ */
27