diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2021-06-13 11:05:58 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-06-13 11:05:58 +0300 |
commit | 00c4604368bbe27982b96b56b0b0a8aa25f3b225 (patch) | |
tree | 6e39e9ebc25fd94affbdbd8f5f47c16797fd4920 /darwin_stop_world.c | |
parent | 5077b8daac5c96906a496be5565e96c229733e80 (diff) | |
download | bdwgc-00c4604368bbe27982b96b56b0b0a8aa25f3b225.tar.gz |
Add comment to stack_range_for that particular regs are skipped (Darwin)
* darwin_stop_world.c [X86_64 || POWERPC] (GC_stack_range_for): Add
comment that rsp and r1 registers are skipped.
Diffstat (limited to 'darwin_stop_world.c')
-rw-r--r-- | darwin_stop_world.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/darwin_stop_world.c b/darwin_stop_world.c index 89161bd3..c4caf62c 100644 --- a/darwin_stop_world.c +++ b/darwin_stop_world.c @@ -235,7 +235,7 @@ STATIC ptr_t GC_stack_range_for(ptr_t *phi, thread_act_t thread, GC_thread p, GC_push_one(state.THREAD_FLD(rdi)); GC_push_one(state.THREAD_FLD(rsi)); GC_push_one(state.THREAD_FLD(rbp)); - /* GC_push_one(state.THREAD_FLD(rsp)); */ + /* rsp is skipped. */ GC_push_one(state.THREAD_FLD(r8)); GC_push_one(state.THREAD_FLD(r9)); GC_push_one(state.THREAD_FLD(r10)); @@ -251,6 +251,7 @@ STATIC ptr_t GC_stack_range_for(ptr_t *phi, thread_act_t thread, GC_thread p, *phi = GC_FindTopOfStack(state.THREAD_FLD(r1)); # endif GC_push_one(state.THREAD_FLD(r0)); + /* r1 is skipped. */ GC_push_one(state.THREAD_FLD(r2)); GC_push_one(state.THREAD_FLD(r3)); GC_push_one(state.THREAD_FLD(r4)); |