Skip to content

Commit d2e7336

Browse files
committed
rt: Remove unused saves from __morestack
1 parent 50dc80f commit d2e7336

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/rt/arch/i386/morestack.S

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,6 @@ MORESTACK:
156156
testl %eax,%eax
157157
jz .L$bail
158158

159-
// Save the the correct %esp value for our grandparent frame,
160-
// for the unwinder
161-
// FIXME: This isn't used
162-
leal 20(%ebp), %eax
163-
movl %eax, -4(%ebp)
164-
165159
// The arguments to upcall_new_stack
166160

167161
// The size of the stack arguments to copy to the new stack,

src/rt/arch/x86_64/morestack.S

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ MORESTACK:
4949
// Calculate the CFA as on offset from %ebp
5050
.cfi_def_cfa_register %rbp
5151

52-
// Save the grandparent stack pointer for the unwinder
53-
// FIXME: This isn't used
54-
leaq 24(%rbp), %rax
55-
pushq %rax
52+
pushq $0 // Alignment
5653

5754
// FIXME: libgcc also saves rax. not sure if we need to
5855

0 commit comments

Comments
 (0)