Division error handling
authorhpa <hpa>
Tue, 23 Nov 2004 23:28:03 +0000 (23:28 +0000)
committerhpa <hpa>
Tue, 23 Nov 2004 23:28:03 +0000 (23:28 +0000)
com32/include/klibc/diverr.h [new file with mode: 0644]

diff --git a/com32/include/klibc/diverr.h b/com32/include/klibc/diverr.h
new file mode 100644 (file)
index 0000000..a4bbedd
--- /dev/null
@@ -0,0 +1,4 @@
+static inline void __divide_error(void)
+{
+  asm volatile("int $0");      /* Divide by zero */
+}