summaryrefslogtreecommitdiff
path: root/boot/kjarna.h
blob: 38a550f9a387e955d4b0fd2e7252806b41e78847 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#pragma once

#include <kjarna/interface.h>

int main(int argc, char **argv);
int image_start(void);

void *malloc(size_t size);
void *calloc(size_t count, size_t size);
void free(void *block);

struct image_buffer
{
	char *base;
	size_t length;
};

struct kjarna_boot_image
{
	struct image_buffer buffer;
	kjarna_image_entry_func *entry;
};

struct kjarna_interface get_boot_interface(void);
struct kjarna_boot_image get_boot_image(void);