Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Add FreeBSD/aarch64 support #146

Merged
merged 2 commits into from
Dec 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/core/sys/freebsd/execinfo.d
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ extern (D) int backtrace(void** buffer, int size)
asm nothrow @trusted { mov p[EBP], EBP; }
else version (D_InlineAsm_X86_64)
asm nothrow @trusted { mov p[RBP], RBP; }
else
else version (AArch64) { // LDC
import ldc.llvmasm;
__asm("str x29, $0", "=*m", &p);
} else
static assert(false, "Architecture not supported.");

int i;
Expand Down