aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/print.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-03 14:04:23 +0200
committerMarvin Borner2021-04-03 14:04:23 +0200
commit394ee169ea6eb4dd5c8fa778d1c2769e26e52f01 (patch)
tree70440fb0d9eeb09e1aeec7eba6f2319d34b4918c /libs/libc/print.c
parentce98400f8a9ebd4e62e76b9e292b7598d0d66cc0 (diff)
Enabled SMAP/SMEP protections
Diffstat (limited to 'libs/libc/print.c')
-rw-r--r--libs/libc/print.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/libc/print.c b/libs/libc/print.c
index 4c38cdc..dcaa8cb 100644
--- a/libs/libc/print.c
+++ b/libs/libc/print.c
@@ -164,6 +164,7 @@ int print(const char *str)
// The kernel prints everything into the serial console
+#include <cpu.h>
#include <mm.h>
#include <proc.h>
#include <serial.h>
@@ -211,7 +212,9 @@ int print_app(enum stream_defaults id, const char *proc_name, const char *str)
serial_print(YEL "[ERR] to ");
serial_print(proc_name);
serial_print(": ");
+ stac();
serial_print(str);
+ clac();
serial_print(RES);
return 1;
}