Author: dgorbachev
Date: Sun Jan 24 02:35:25 2010
New Revision: 45225
URL:
http://svn.reactos.org/svn/reactos?rev=45225&view=rev
Log:
Trying to fix build...
Modified:
trunk/reactos/ntoskrnl/include/internal/trap_x.h
Modified: trunk/reactos/ntoskrnl/include/internal/trap_x.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/trap_x.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/trap_x.h [iso-8859-1] Sun Jan 24 02:35:25
2010
@@ -5,6 +5,16 @@
* PURPOSE: Internal Inlined Functions for the Trap Handling Code
* PROGRAMMERS: ReactOS Portable Systems Group
*/
+
+#ifdef __GNUC__
+#if __GNUC__ * 100 + __GNUC_MINOR__ >= 405
+#define UNREACHABLE __builtin_unreachable()
+#else
+#define UNREACHABLE __builtin_trap()
+#else /* not __GNUC__ */
+#define UNREACHABLE
+#endif
+#endif
//
// Debug Macros
@@ -276,7 +286,7 @@
[v] "i"(KTRAP_FRAME_ESP)
: "%esp"
);
- exit(0);
+ UNREACHABLE;
}
FORCEINLINE
@@ -305,7 +315,7 @@
[e] "i"(KTRAP_FRAME_EIP)
: "%esp"
);
- exit(0);
+ UNREACHABLE;
}
FORCEINLINE
@@ -338,7 +348,7 @@
[v] "i"(KTRAP_FRAME_V86_ES)
: "%esp"
);
- exit(0);
+ UNREACHABLE;
}
FORCEINLINE
@@ -371,7 +381,7 @@
[e] "i"(KTRAP_FRAME_EIP)
: "%esp"
);
- exit(0);
+ UNREACHABLE;
}
FORCEINLINE
@@ -405,7 +415,7 @@
[e] "i"(KTRAP_FRAME_ERROR_CODE) /* We *WANT* the error code since ESP
is there! */
: "%esp"
);
- exit(0);
+ UNREACHABLE;
}
NTSTATUS