aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions/sys_get_pointers.c
blob: cd824db0a93ee10efa145996d015e7535d37c4f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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;
}