mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-13 14:39:10 +00:00
Get LIBC_RUNTIME and LIBC_CALLS building on aarch64
This commit is contained in:
parent
7e46645193
commit
e5e3cdf447
1200 changed files with 5341 additions and 3677 deletions
|
@ -18,13 +18,16 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "ape/macros.internal.h"
|
||||
.real
|
||||
.code16 # ∩ .code32 ∩ .code64
|
||||
|
||||
// Most basic tier of program self-termination.
|
||||
//
|
||||
// @mode long,legacy,real
|
||||
abort: push %bp
|
||||
mov %sp,%bp
|
||||
rlcall __panic
|
||||
int3
|
||||
abort:
|
||||
#ifdef __x86_64__
|
||||
ud2
|
||||
#elif defined(__aarch64__)
|
||||
brk #1000
|
||||
#else
|
||||
#error "architecture unsupported"
|
||||
#endif
|
||||
.endfn abort,weak
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue