aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions/sys_pointers.c
diff options
context:
space:
mode:
authorMarvin Borner2020-04-29 19:21:29 +0200
committerMarvin Borner2020-04-29 19:21:29 +0200
commit4546c75d685475d8b9f215b588364e1d1bbd0b79 (patch)
tree2077f72ad46dfe877f7febdd0692edc139fd7937 /src/kernel/syscall/actions/sys_pointers.c
parent396d7d303d3bf0e796d0c817883ec1dec928352a (diff)
MUCH work in libc
Also cleaned up some syscalls etc
Diffstat (limited to 'src/kernel/syscall/actions/sys_pointers.c')
-rw-r--r--src/kernel/syscall/actions/sys_pointers.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/kernel/syscall/actions/sys_pointers.c b/src/kernel/syscall/actions/sys_pointers.c
index ced95de..6cf50ae 100644
--- a/src/kernel/syscall/actions/sys_pointers.c
+++ b/src/kernel/syscall/actions/sys_pointers.c
@@ -12,17 +12,8 @@ struct pointers {
uint32_t sys_pointers()
{
- struct vbe_mode_info *ret = (struct vbe_mode_info *)umalloc(sizeof(struct vbe_mode_info));
- ret->attributes = current_mode_info->attributes;
- ret->pitch = current_mode_info->pitch;
- ret->width = current_mode_info->width;
- ret->height = current_mode_info->height;
- ret->bpp = current_mode_info->bpp;
- ret->memory_model = current_mode_info->memory_model;
- ret->framebuffer = current_mode_info->framebuffer;
-
struct pointers *pointers = umalloc(sizeof(struct pointers));
- pointers->current_mode_info = ret;
+ pointers->current_mode_info = current_mode_info;
pointers->font = font;
return pointers;