aboutsummaryrefslogtreecommitdiff
path: root/include/io.s
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-08-12 15:12:03 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-08-12 15:12:03 +0200
commit6be5a28bb90b391a5842a8ce3dfc7c154100ab68 (patch)
tree22e04a263e68d983c6bf5d1fdebd662e66915e96 /include/io.s
parent5184299c7dfddeba4d2d2ba95d390040368f9736 (diff)
downloaduskel-6be5a28bb90b391a5842a8ce3dfc7c154100ab68.tar.gz
uskel-6be5a28bb90b391a5842a8ce3dfc7c154100ab68.tar.bz2
make a macro for pushing out thunks
Diffstat (limited to 'include/io.s')
-rw-r--r--include/io.s7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/io.s b/include/io.s
index c348e7f..7e78c1b 100644
--- a/include/io.s
+++ b/include/io.s
@@ -4,12 +4,7 @@ _io_s_file:
# | int | -> cont
.thunkcode print
- push %rsi
- push %rbp
- pushq $2
- pushq $print_fini
-
- mov %rsp, %rsi
+ thunkto %rsi, $print_fini, $2, %rbp, %rsi
enter 020(%rbp)
# arg -> | ret | cont |