hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 71e701faad89e9f040ab206e89eb21ef14224db6
parent 6f8c14ca7c24a496ccd6bed5275a827058cf61e4
Author: Armin Weigl <tb46305@gmail.com>
Date:   Mon, 15 Feb 2021 19:29:03 +0100

move syscall helpers into function-sections

Diffstat:
Mrt/+linux/syscall+aarch64.s | 8+++++++-
Mrt/+linux/syscall+x86_64.s | 8+++++++-
2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/rt/+linux/syscall+aarch64.s b/rt/+linux/syscall+aarch64.s @@ -1,4 +1,4 @@ -.text +.section .text.rt.syscall0 .global rt.syscall0 rt.syscall0: sub sp, sp, #16 @@ -8,6 +8,7 @@ rt.syscall0: add sp, sp, 16 ret +.section .text.rt.syscall1 .global rt.syscall1 rt.syscall1: sub sp, sp, #16 @@ -19,6 +20,7 @@ rt.syscall1: add sp, sp, 16 ret +.section .text.rt.syscall2 .global rt.syscall2 rt.syscall2: sub sp, sp, #32 @@ -32,6 +34,7 @@ rt.syscall2: add sp, sp, 32 ret +.section .text.rt.syscall3 .global rt.syscall3 rt.syscall3: sub sp, sp, #32 @@ -47,6 +50,7 @@ rt.syscall3: add sp, sp, 32 ret +.section .text.rt.syscall4 .global rt.syscall4 rt.syscall4: sub sp, sp, #48 @@ -64,6 +68,7 @@ rt.syscall4: add sp, sp, 48 ret +.section .text.rt.syscall5 .global rt.syscall5 rt.syscall5: sub sp, sp, #48 @@ -83,6 +88,7 @@ rt.syscall5: add sp, sp, 48 ret +.section .text.rt.syscall6 .global rt.syscall6 rt.syscall6: sub sp, sp, #64 diff --git a/rt/+linux/syscall+x86_64.s b/rt/+linux/syscall+x86_64.s @@ -1,10 +1,11 @@ -.text +.section .text.rt.syscall0 .global rt.syscall0 rt.syscall0: movq %rdi, %rax syscall ret +.section .text.rt.syscall1 .global rt.syscall1 rt.syscall1: movq %rdi, %rax @@ -12,6 +13,7 @@ rt.syscall1: syscall ret +.section .text.rt.syscall2 .global rt.syscall2 rt.syscall2: movq %rdi, %rax @@ -20,6 +22,7 @@ rt.syscall2: syscall ret +.section .text.rt.syscall3 .global rt.syscall3 rt.syscall3: movq %rdi, %rax @@ -29,6 +32,7 @@ rt.syscall3: syscall ret +.section .text.rt.syscall4 .global rt.syscall4 rt.syscall4: movq %rdi, %rax @@ -39,6 +43,7 @@ rt.syscall4: syscall ret +.section .text.rt.syscall5 .global rt.syscall5 rt.syscall5: movq %rdi, %rax @@ -50,6 +55,7 @@ rt.syscall5: syscall ret +.section .text.rt.syscall6 .global rt.syscall6 rt.syscall6: movq %rdi, %rax