summaryrefslogtreecommitdiff
path: root/boot/kjarna.h
blob: be77a4b37071920bfa59215e0827b43e6592055c (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
#pragma once

#pragma once

#include <kjarna/interface.h>

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

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_boot_image get_boot_image(void);