blob: 6e865f0f2ed7f77a8a2fff004db09cc6ed46623a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef BIOS_LINUXBOOT_H
#define BIOS_LINUXBOOT_H 1
#include <stdbool.h>
struct linuxboot_args {
/* Output */
void *setup_addr, *cmdline_addr, *kernel_addr, *initrd_addr;
uint32_t setup_size, kernel_size;
/* Input */
uint32_t cmdline_size, vmlinuz_size, initrd_size;
uint8_t header[8192];
};
bool parse_bzimage(struct linuxboot_args *args);
void boot_bzimage(struct linuxboot_args *args);
#endif
|