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#include <sel4/sel4.h>
14
15/** Consider moving bootinfo into libsel4_startup */
16seL4_BootInfo* bootinfo;
17
18/** Consider moving seL4_InitBootInfo into libsel4_startup */
19void seL4_InitBootInfo(seL4_BootInfo* bi)
20{
21    bootinfo = bi;
22    /* Save the address of the IPC buffer for seL4_GetIPCBuffer on IA32. */
23    seL4_SetUserData((seL4_Word)bootinfo->ipcBuffer);
24}
25
26seL4_BootInfo* seL4_GetBootInfo()
27{
28    return bootinfo;
29}
30