0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 15:00:51 +01:00

ircd::assert: Ensure x86_64 for use of trap instruction.

This commit is contained in:
Jason Volk 2019-03-15 14:42:22 -07:00
parent b456210f1e
commit 8a100eeb26

View file

@ -26,12 +26,14 @@ __assert_fail(const char *__assertion,
__function,
__assertion);
if(strcmp(RB_ASSERT, "trap") == 0)
__asm__ volatile ("int $3");
else if(strcmp(RB_ASSERT, "quit") == 0)
if(strcmp(RB_ASSERT, "quit") == 0)
ircd::quit();
#if defined(__x86_64__)
else if(strcmp(RB_ASSERT, "trap") == 0)
__asm__ volatile ("int $3");
#endif
#if defined(HAVE_EXCEPTION)
else if(strcmp(RB_ASSERT, "term") == 0)
{