aboutsummaryrefslogtreecommitdiff
path: root/include/uskel.s
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-11-01 18:25:06 +0100
committerMirek Kratochvil <exa.exa@gmail.com>2023-11-01 18:25:06 +0100
commit970ffb4684dbd88bd54e909820bbc5a66a87b18d (patch)
tree43ad1d8438ef824deaf6d363d38f5d60f3d04645 /include/uskel.s
parentd1a4eb56ccf39974dd93eeb0434721acc69bbc7c (diff)
downloaduskel-970ffb4684dbd88bd54e909820bbc5a66a87b18d.tar.gz
uskel-970ffb4684dbd88bd54e909820bbc5a66a87b18d.tar.bz2
all looks ok
Diffstat (limited to 'include/uskel.s')
-rw-r--r--include/uskel.s4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uskel.s b/include/uskel.s
index f59a1f7..0a21217 100644
--- a/include/uskel.s
+++ b/include/uskel.s
@@ -32,10 +32,10 @@ _uskel_start:
pushq $0
pushq $main
- mov $0, %rsi # set continuation to exit
+ # loop the continuation to itself (prevents gc trouble, should never be reached)
+ mov %rsp, %rsi
enter %rsp # run the program
# Q: are there gonna be functions that have both the argument AND the cont?
- #
# A: No, stuff is either entered as return-continuation (takes res,
# cont has to be saved) or as forward call (takes cont)
#