Skip to content

Commit

Permalink
Add support for m68k (#900)
Browse files Browse the repository at this point in the history
Fixes #895
  • Loading branch information
glaubitz committed Feb 19, 2021
1 parent 3fcd00d commit f3697b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions absl/base/internal/direct_mmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) || \
Expand Down
2 changes: 2 additions & 0 deletions absl/debugging/internal/examine_stack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit f3697b4

Please sign in to comment.