mirror of
https://github.com/RGBCube/serenity
synced 2025-05-26 01:45:06 +00:00

We have had these for quite a while, but we didn't compile them, and used GCC's version instead. Clang does not come with these, so we have to provide our own implementation. Our implementation follows what `musl` and `FreeBSD` do, so this should work fine, even if documentation can hardly be found for them.
15 lines
268 B
ArmAsm
15 lines
268 B
ArmAsm
/*
|
|
* Copyright (c) 2021, Daniel Bertalan <dani@danielbertalan.dev>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
.section .init, "ax", @progbits
|
|
movq %rbp, %rsp
|
|
popq %rbp
|
|
retq
|
|
|
|
.section .fini, "ax", @progbits
|
|
movq %rbp, %rsp
|
|
popq %rbp
|
|
retq
|