1/*
2 * Copyright 2014, General Dynamics C4 Systems
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 */
6
7#pragma once
8
9#include <config.h>
10#include <types.h>
11#include <sel4/bootinfo_types.h>
12
13#define BI_PTR(r) ((seL4_BootInfo*)(r))
14#define BI_REF(p) ((word_t)(p))
15#define BI_FRAME_SIZE_BITS PAGE_BITS
16#define S_REG_EMPTY (seL4_SlotRegion){ .start = 0, .end = 0 }
17
18/* adjust constants in config.h if this assert fails */
19compile_assert(bi_size, sizeof(seL4_BootInfo) <= BIT(BI_FRAME_SIZE_BITS))
20
21