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

#pragma once

#include <kjarna/interface.h>
#include <lib/elf.h>

#define KJARNA_BOOT_STACK_SIZE 0x20000ULL

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

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

struct kjarna_boot_image
{
	struct linear_buffer image_buffer;
	struct linear_buffer stack_buffer;
	kjarna_image_entry_func *entry;
};

struct kjarna_boot_image get_boot_image(void);