mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
fix BUG (GC bug) in L__gc_init
This commit is contained in:
parent
da677ff879
commit
23697829b9
1 changed files with 1 additions and 18 deletions
|
|
@ -11,12 +11,11 @@ __gc_stack_top: .long 0
|
||||||
.globl __post_gc
|
.globl __post_gc
|
||||||
.globl L__gc_init
|
.globl L__gc_init
|
||||||
.globl __gc_root_scan_stack
|
.globl __gc_root_scan_stack
|
||||||
.globl __gc_trace_registers
|
|
||||||
.extern init_pool
|
.extern init_pool
|
||||||
.extern gc_test_and_copy_root
|
.extern gc_test_and_copy_root
|
||||||
.text
|
.text
|
||||||
|
|
||||||
L__gc_init: movl %esp, __gc_stack_bottom
|
L__gc_init: movl %ebp, __gc_stack_bottom
|
||||||
addl $4, __gc_stack_bottom
|
addl $4, __gc_stack_bottom
|
||||||
call init_pool
|
call init_pool
|
||||||
ret
|
ret
|
||||||
|
|
@ -113,19 +112,3 @@ returnn:
|
||||||
movl %ebp, %esp
|
movl %ebp, %esp
|
||||||
popl %ebp
|
popl %ebp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
__gc_trace_registers:
|
|
||||||
pushl %ebp
|
|
||||||
movl %esp, %ebp
|
|
||||||
|
|
||||||
pushl %ebx
|
|
||||||
call gc_test_and_copy_root
|
|
||||||
popl %ebx
|
|
||||||
|
|
||||||
movl %ebp, %esp
|
|
||||||
popl %ebp
|
|
||||||
ret
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue