aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions/sys_get_pointers.c
blob: 181630bd13e5a762abaa6e1702cabc7167eff9bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdint.h>
#include <kernel/graphics/vesa.h>
#include <kernel/fs/load.h>
#include <kernel/memory/alloc.h>

struct userspace_pointers {
	unsigned char *fb;
	struct font *font;
};

uint32_t sys_get_pointers()
{
	struct userspace_pointers *pointers =
		(struct userspace_pointers *)kmalloc(sizeof(struct userspace_pointers));
	pointers->fb = fb;
	pointers->font = font;
	return (uint32_t)pointers;
}