Changeset 1df1905 in mainline for uspace/lib/c/arch/sparc32/src/fibril.S
- Timestamp:
- 2013-12-28T17:30:44Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41b735f3
- Parents:
- c1023bcb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/sparc32/src/fibril.S
rc1023bcb r1df1905 40 40 # should a thread switch occur. 41 41 # 42 mov 7, %g1 43 1: subcc %g1, 1, %g1 44 bg 1b 45 save %sp, -64, %sp 46 42 47 43 mov 7, %g1 48 1: subcc %g1, 1, %g1 49 bg 1b 50 restore 51 44 1: 45 subcc %g1, 1, %g1 46 bg 1b 47 save %sp, -64, %sp 48 49 mov 7, %g1 50 1: 51 subcc %g1, 1, %g1 52 bg 1b 53 restore 54 52 55 CONTEXT_SAVE_ARCH_CORE %o0 53 56 retl 54 mov 1, %o0 57 mov 1, %o0 ! context_save_arch returns 1 55 58 56 59 context_restore: … … 61 64 # windows mitigates this problem as CWP - 1 becomes the overlap window. 62 65 # 63 # XXX 64 # flushw 65 # ta 0x4f 66 # nop 67 mov 7, %g1 68 1: subcc %g1, 1, %g1 69 bg 1b 70 save %sp, -64, %sp 71 66 67 ## XXX 68 ## flushw 69 ## ta 0x4f 70 ## nop 72 71 mov 7, %g1 73 1: subcc %g1, 1, %g1 74 bg 1b 75 restore 72 1: 73 subcc %g1, 1, %g1 74 bg 1b 75 save %sp, -64, %sp 76 77 mov 7, %g1 78 1: 79 subcc %g1, 1, %g1 80 bg 1b 81 restore 76 82 77 83 CONTEXT_RESTORE_ARCH_CORE %o0 78 84 retl 79 xor %o0, %o0, %o0 85 xor %o0, %o0, %o0 ! context_restore_arch returns 0
Note:
See TracChangeset
for help on using the changeset viewer.