diff options
author | Marvin Borner | 2021-04-03 14:04:23 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-03 14:04:23 +0200 |
commit | 394ee169ea6eb4dd5c8fa778d1c2769e26e52f01 (patch) | |
tree | 70440fb0d9eeb09e1aeec7eba6f2319d34b4918c /kernel/drivers/fb.c | |
parent | ce98400f8a9ebd4e62e76b9e292b7598d0d66cc0 (diff) |
Enabled SMAP/SMEP protections
Diffstat (limited to 'kernel/drivers/fb.c')
-rw-r--r-- | kernel/drivers/fb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/drivers/fb.c b/kernel/drivers/fb.c index 577debf..3e333e8 100644 --- a/kernel/drivers/fb.c +++ b/kernel/drivers/fb.c @@ -1,6 +1,7 @@ // MIT License, Copyright (c) 2021 Marvin Borner #include <assert.h> +#include <cpu.h> #include <def.h> #include <errno.h> #include <fb.h> @@ -44,7 +45,9 @@ static res fb_ioctl(u32 request, void *arg1, void *arg2, void *arg3, struct devi else fb_owner = proc_current()->pid; + stac(); memcpy(arg1, info->vbe, sizeof(struct vbe_basic)); + clac(); fb_map_buffer(proc_current()->page_dir, info); return EOK; } |