Skip to content

Commit 72baf70

Browse files
committed
rt: Conditionalize out the 32-bit __morestack for everything but Linux
Currently broken everywhere else
1 parent 8cbba79 commit 72baf70

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/rt/arch/i386/morestack.S

+7
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
.type MORESTACK,@function
6666
#endif
6767

68+
#if defined(__linux__)
6869
MORESTACK:
6970

7071
// Sanity check to make sure that there is a currently-running task.
@@ -130,6 +131,12 @@ MORESTACK:
130131
addl $12+4+8+ALIGNMENT,%esp
131132
jmpl *%edx
132133

134+
135+
#else
136+
MORESTACK:
137+
ret
138+
#endif
139+
133140
#ifdef __APPLE__
134141

135142
.section __IMPORT,__pointers,non_lazy_symbol_pointers

0 commit comments

Comments
 (0)