mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 18:04:41 +00:00
Trying to fix build...
svn path=/trunk/; revision=45225
This commit is contained in:
parent
8b7f482f2a
commit
601c4ee420
|
@ -6,6 +6,16 @@
|
||||||
* PROGRAMMERS: ReactOS Portable Systems Group
|
* 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
|
// Debug Macros
|
||||||
//
|
//
|
||||||
|
@ -276,7 +286,7 @@ KiSystemCallReturn(IN PKTRAP_FRAME TrapFrame)
|
||||||
[v] "i"(KTRAP_FRAME_ESP)
|
[v] "i"(KTRAP_FRAME_ESP)
|
||||||
: "%esp"
|
: "%esp"
|
||||||
);
|
);
|
||||||
exit(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
|
@ -305,7 +315,7 @@ KiSystemCallTrapReturn(IN PKTRAP_FRAME TrapFrame)
|
||||||
[e] "i"(KTRAP_FRAME_EIP)
|
[e] "i"(KTRAP_FRAME_EIP)
|
||||||
: "%esp"
|
: "%esp"
|
||||||
);
|
);
|
||||||
exit(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
|
@ -338,7 +348,7 @@ KiSystemCallSysExitReturn(IN PKTRAP_FRAME TrapFrame)
|
||||||
[v] "i"(KTRAP_FRAME_V86_ES)
|
[v] "i"(KTRAP_FRAME_V86_ES)
|
||||||
: "%esp"
|
: "%esp"
|
||||||
);
|
);
|
||||||
exit(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
|
@ -371,7 +381,7 @@ KiTrapReturn(IN PKTRAP_FRAME TrapFrame)
|
||||||
[e] "i"(KTRAP_FRAME_EIP)
|
[e] "i"(KTRAP_FRAME_EIP)
|
||||||
: "%esp"
|
: "%esp"
|
||||||
);
|
);
|
||||||
exit(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCEINLINE
|
FORCEINLINE
|
||||||
|
@ -405,7 +415,7 @@ KiEditedTrapReturn(IN PKTRAP_FRAME TrapFrame)
|
||||||
[e] "i"(KTRAP_FRAME_ERROR_CODE) /* We *WANT* the error code since ESP is there! */
|
[e] "i"(KTRAP_FRAME_ERROR_CODE) /* We *WANT* the error code since ESP is there! */
|
||||||
: "%esp"
|
: "%esp"
|
||||||
);
|
);
|
||||||
exit(0);
|
UNREACHABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
|
Loading…
Reference in a new issue