From f5e48e94a2f4d4bbd6e5628c7f2afafc6dbcc459 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 17:28:52 -0500 Subject: build: Build mlibc + add distclean target Signed-off-by: Ian Moffett --- lib/mlibc/options/internal/x86_64/setjmp.S | 54 ------------------------------ 1 file changed, 54 deletions(-) delete mode 100644 lib/mlibc/options/internal/x86_64/setjmp.S (limited to 'lib/mlibc/options/internal/x86_64/setjmp.S') diff --git a/lib/mlibc/options/internal/x86_64/setjmp.S b/lib/mlibc/options/internal/x86_64/setjmp.S deleted file mode 100644 index aa8a134..0000000 --- a/lib/mlibc/options/internal/x86_64/setjmp.S +++ /dev/null @@ -1,54 +0,0 @@ - -.type __setjmp, "function" -__setjmp: - mov %rbx, 0x00(%rdi) - mov %rbp, 0x08(%rdi) - mov %r12, 0x10(%rdi) - mov %r13, 0x18(%rdi) - mov %r14, 0x20(%rdi) - mov %r15, 0x28(%rdi) - - lea 8(%rsp), %rax # rsp before return rip is pushed - mov %rax, 0x30(%rdi) - mov (%rsp), %rax # return rip - mov %rax, 0x38(%rdi) - - test %rdx, %rdx - jnz 1f - xor %rax, %rax - ret - -1: - jmp __sigsetjmp - -.global setjmp -.type setjmp, "function" -setjmp: - xor %rdx, %rdx - jmp __setjmp - -.global sigsetjmp -.type sigsetjmp, "function" -sigsetjmp: - mov $1, %rdx - jmp __setjmp - -.global longjmp -.type longjmp, "function" -longjmp: - mov 0x00(%rdi), %rbx - mov 0x08(%rdi), %rbp - mov 0x10(%rdi), %r12 - mov 0x18(%rdi), %r13 - mov 0x20(%rdi), %r14 - mov 0x28(%rdi), %r15 - - mov %rsi, %rax - test %rax, %rax - jnz 1f - inc %rax -1: - mov 0x30(%rdi), %rsp - jmp *0x38(%rdi) -.section .note.GNU-stack,"",%progbits - -- cgit v1.2.3