Changes in uspace/lib/libc/arch/sparc64/src/fibril.S [245e8399:ecc83bd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/sparc64/src/fibril.S
r245e8399 recc83bd 35 35 36 36 context_save: 37 #38 # We rely on the kernel to flush our active register windows to memory39 # should a thread switch occur.40 #41 37 CONTEXT_SAVE_ARCH_CORE %o0 42 38 retl … … 46 42 # 47 43 # Flush all active windows. 48 # This is essential, because CONTEXT_RESTORE_ARCH_CORE overwrites %sp of 49 # CWP - 1 with the value written to %fp of CWP. Flushing all active 50 # windows mitigates this problem as CWP - 1 becomes the overlap window. 51 # 44 # This is essential, because CONTEXT_LOAD overwrites 45 # %sp of CWP - 1 with the value written to %fp of CWP. 46 # Flushing all active windows mitigates this problem 47 # as CWP - 1 becomes the overlap window. 48 # 52 49 flushw 53 50
Note:
See TracChangeset
for help on using the changeset viewer.