summaryrefslogtreecommitdiff
path: root/absl
diff options
context:
space:
mode:
authorGravatar John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>2021-02-19 02:09:17 +0100
committerGravatar GitHub <noreply@github.com>2021-02-18 20:09:17 -0500
commitf3697b4fedc2d8f2311eaaebed051f6a44182bb2 (patch)
treeec0e4e46983be9738040ad9840658d1152891c6c /absl
parent3fcd00d7dddafe65ced638acca560105a414cba5 (diff)
Add support for m68k (#900)
Fixes #895
Diffstat (limited to 'absl')
-rw-r--r--absl/base/internal/direct_mmap.h1
-rw-r--r--absl/debugging/internal/examine_stack.cc2
2 files changed, 3 insertions, 0 deletions
diff --git a/absl/base/internal/direct_mmap.h b/absl/base/internal/direct_mmap.h
index 2d980b4c..a10a11c9 100644
--- a/absl/base/internal/direct_mmap.h
+++ b/absl/base/internal/direct_mmap.h
@@ -74,6 +74,7 @@ namespace base_internal {
inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd,
off64_t offset) noexcept {
#if defined(__i386__) || defined(__ARM_ARCH_3__) || defined(__ARM_EABI__) || \
+ defined(__m68k__) || \
(defined(__mips__) && _MIPS_SIM == _MIPS_SIM_ABI32) || \
(defined(__PPC__) && !defined(__PPC64__)) || \
(defined(__riscv) && __riscv_xlen == 32) || \
diff --git a/absl/debugging/internal/examine_stack.cc b/absl/debugging/internal/examine_stack.cc
index 299a107b..c9fcb1f4 100644
--- a/absl/debugging/internal/examine_stack.cc
+++ b/absl/debugging/internal/examine_stack.cc
@@ -51,6 +51,8 @@ void* GetProgramCounter(void* vuc) {
#elif defined(__i386__)
if (14 < ABSL_ARRAYSIZE(context->uc_mcontext.gregs))
return reinterpret_cast<void*>(context->uc_mcontext.gregs[14]);
+#elif defined(__m68k__)
+ return reinterpret_cast<void*>(context->uc_mcontext.gregs[16]);
#elif defined(__mips__)
return reinterpret_cast<void*>(context->uc_mcontext.pc);
#elif defined(__powerpc64__)