Added boot process information to help someone find out what really happens.
[bootos.git] / stage2 / kernel.h
blobe9a298bbee9bf3f20e34240f5dcd701397f12f0d
1 /* kernel.h - device tree manipulation and kernel loading
3 Copyright (C) 2010-2011 Hector Martin "marcan" <hector@marcansoft.com>
5 This code is licensed to you under the terms of the GNU GPL, version 2;
6 see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
7 */
9 #ifndef KERNEL_H
10 #define KERNEL_H
12 #include "types.h"
14 #define MAX_CMDLINE_SIZE 255
16 int kernel_load(const u8 *addr, u32 len);
17 void kernel_build_cmdline(const char *parameters, const char *root);
18 void kernel_set_initrd(void *start, size_t size);
19 void kernel_launch(void);
21 #endif