summaryrefslogtreecommitdiff
path: root/kernel/smashing.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-26 11:12:18 +0200
committerMiguel <m.i@gmx.at>2018-09-26 11:12:18 +0200
commit915791f6acedbb35db73216156c1baa790e384d9 (patch)
tree203c1308309fac2a336686ca48f7fbd05013bdb1 /kernel/smashing.c
parentae33cc6557790a502a01b380b0926944ca2f3cfa (diff)
claning up interrupts
Diffstat (limited to 'kernel/smashing.c')
-rw-r--r--kernel/smashing.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/kernel/smashing.c b/kernel/smashing.c
deleted file mode 100644
index d4365b9..0000000
--- a/kernel/smashing.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "kernel/kernel.h"
-#include "log.h"
-#include <stdint.h>
-
-// CODE FOR Stack Smashing Protector.
-// Do not duplicate with userspace / sys.c
-// http://wiki.osdev.org/Stack_Smashing_Protector
-
-#if UINT32_MAX == UINTPTR_MAX
-#define STACK_CHK_GUARD 0xe2dee396
-#else
-#define STACK_CHK_GUARD 0x595e9fbd94fda766
-#endif
-
-uintptr_t __stack_chk_guard = STACK_CHK_GUARD;
-
-__attribute__((noreturn))
-void __stack_chk_fail(void)
-{
- kpanic("Stack smashing detected");
-}
-//