1/*
2 * Copyright 2014, General Dynamics C4 Systems
3 *
4 * This software may be distributed and modified according to the terms of
5 * the GNU General Public License version 2. Note that NO WARRANTY is provided.
6 * See "LICENSE_GPLv2.txt" for details.
7 *
8 * @TAG(GD_GPL)
9 */
10
11#ifndef __BOOTINFO_H
12#define __BOOTINFO_H
13
14#include <config.h>
15#include <types.h>
16#include <api/bootinfo_types.h>
17
18#define BI_PTR(r) ((seL4_BootInfo*)(r))
19#define BI_REF(p) ((word_t)(p))
20#define BI_FRAME_SIZE_BITS PAGE_BITS
21#define S_REG_EMPTY (seL4_SlotRegion){ .start = 0, .end = 0 }
22
23/* adjust constants in config.h if this assert fails */
24compile_assert(bi_size, sizeof(seL4_BootInfo) <= BIT(BI_FRAME_SIZE_BITS))
25
26#endif
27