Commit 88e2ed54 authored by Nico Weber's avatar Nico Weber

mac: Make sandbox/ build on arm64.

Bug: 1098899
Change-Id: I7f03ab3d7305beec8057351f6c0aa50ccb9e4503
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2270700
Commit-Queue: Nico Weber <thakis@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Reviewed-by: default avatarMark Mentovai <mark@chromium.org>
Cr-Commit-Position: refs/heads/master@{#783075}
parent 8e62d2d4
...@@ -15,12 +15,20 @@ ...@@ -15,12 +15,20 @@
#include <limits> #include <limits>
#include <string> #include <string>
#if __x86_64__
#define ABORT() \ #define ABORT() \
{ \ { \
asm volatile( \ asm volatile( \
"int3; ud2; push %0;" ::"i"(static_cast<unsigned char>(__COUNTER__))); \ "int3; ud2; push %0;" ::"i"(static_cast<unsigned char>(__COUNTER__))); \
__builtin_unreachable(); \ __builtin_unreachable(); \
} }
#elif __arm64__
#define ABORT() \
{ \
asm volatile("udf %0;" ::"i"(static_cast<unsigned char>(__COUNTER__))); \
__builtin_unreachable(); \
}
#endif
extern "C" { extern "C" {
void abort_report_np(const char*, ...); void abort_report_np(const char*, ...);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment