Skip to content

Commit f0254e1

Browse files
committed
rt: Add a FIXME to 32-bit __morestack about trashing %eax
1 parent f332643 commit f0254e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/rt/arch/i386/morestack.S

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ MORESTACK:
123123
subl $8, %esp // Alignment
124124

125125
// Now that we're on the return path we want to avoid
126-
// stomping on %eax
126+
// stomping on %eax. FIXME: Need to save and restore
127+
// eax to actually preserve it across the call to delete the stack
127128
#ifdef __APPLE__
128129
call 1f
129130
1: popl %ecx

0 commit comments

Comments
 (0)