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_ARCH_MAPPING 14#define __LIBSEL4_SEL4_ARCH_MAPPING 15 16#include <autoconf.h> 17 18#define SEL4_MAPPING_LOOKUP_LEVEL 2 19#define SEL4_MAPPING_LOOKUP_NO_PT 22 20 21LIBSEL4_INLINE_FUNC seL4_Word seL4_MappingFailedLookupLevel(void) 22{ 23 return seL4_GetMR(SEL4_MAPPING_LOOKUP_LEVEL); 24} 25 26#endif 27