Skip to content

Commit

Permalink
A10 done
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkov63 committed May 11, 2024
1 parent 15f8d4b commit 411a7cb
Show file tree
Hide file tree
Showing 8 changed files with 2,561 additions and 1,044 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
*
!/**/
!*.*
*.aux
*.log
!/regression/orig/*.log
*.out
*.o
*.a
*.sm
*.i
*.s
*~
*.aux
*.fdb_*
*.fls
!Makefile
!/runtime/gc_runtime.s
1 change: 1 addition & 0 deletions runtime/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-m32
14 changes: 10 additions & 4 deletions runtime/gc_runtime.s
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,18 @@ L__gc_init: movl %esp, __gc_stack_bottom
// if @__gc_stack_top is equal to 0
// then set @__gc_stack_top to %ebp
// else return
__pre_gc:
call nimpl
__pre_gc: movl __gc_stack_top, %eax
testl %eax, %eax
jnz __pre_gc_return
movl %ebp, __gc_stack_top
__pre_gc_return: ret

// ==================================================
// if __gc_stack_top was set by one of the callers
// then return
// else set __gc_stack_top to 0
__post_gc:
call nimpl
__post_gc: movl __gc_stack_top, %eax
cmpl %ebp, %eax
jl __post_gc_return
movl $0, __gc_stack_top
__post_gc_return: ret
Loading

0 comments on commit 411a7cb

Please sign in to comment.