aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/exception_handling
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/exception_handling')
-rw-r--r--arch/x86_64/src/exception_handling/pure_virtual.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86_64/src/exception_handling/pure_virtual.cpp b/arch/x86_64/src/exception_handling/pure_virtual.cpp
new file mode 100644
index 0000000..67772f7
--- /dev/null
+++ b/arch/x86_64/src/exception_handling/pure_virtual.cpp
@@ -0,0 +1,6 @@
+#include "arch/exception_handling/panic.hpp"
+
+extern "C" auto __cxa_pure_virtual() -> void
+{
+ teachos::arch::exception_handling::panic("Runtime", "Tried to call a pure virtual function!");
+}