blob: 1f4cf5e5ec87f21a383676938c16a4ed7ddcf880 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <stdint.h>
#include <kernel/graphics/vesa.h>
#include <kernel/graphics/font.h>
#include <kernel/paging/paging.h>
#include <kernel/io/io.h>
#include <kernel/lib/stdlib/liballoc.h>
struct userspace_pointers {
unsigned char *fb;
struct font *font;
};
uint32_t sys_get_pointers()
{
struct userspace_pointers *pointers = (struct userspace_pointers *) umalloc(sizeof(struct userspace_pointers));
pointers->fb = fb;
pointers->font = font;
return (uint32_t) pointers;
}
|