Reworks MCS-PDR locks to avoid preempt storms
[akaros.git] / user / parlib / panic.c
index 27b5011..1875ce9 100644 (file)
@@ -1,25 +1,9 @@
-
-#include <ros/arch/arch.h>
+#include <arch/arch.h>
 #include <stdio.h>
 #include <stdarg.h>
 
 char *argv0;
 
-// TODO: have arch specific user includes
-#ifdef __i386__
-static __inline void
-breakpoint(void)
-{
-       __asm __volatile("int3");
-}
-#else
-static __inline void
-breakpoint(void)
-{
-       asm volatile ("ta 0x7f");
-}
-#endif
-
 /*
  * Panic is called on unresolvable fatal errors.
  * It prints "panic: <message>", then causes a breakpoint exception,