blob: adbdd36fa668af6b4e3c44cffc3c92676e92f089 (
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/graphics/font.h>
#include <kernel/paging/paging.h>
struct userspace_pointers {
unsigned char *fb;
struct font *font;
};
uint32_t sys_get_pointers()
{
struct userspace_pointers *pointers = (struct userspace_pointers *) paging_alloc_pages(1);
pointers->fb = fb;
pointers->font = font;
paging_set_user((uint32_t) pointers, 1);
return (uint32_t) pointers;
}
|