Changeset a35b458 in mainline for uspace/lib/c/arch/sparc64
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- Location:
- uspace/lib/c/arch/sparc64
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/sparc64/include/libarch/atomic.h
r3061bc1 ra35b458 55 55 atomic_count_t a; 56 56 atomic_count_t b; 57 57 58 58 do { 59 59 volatile uintptr_t ptr = (uintptr_t) &val->count; 60 60 61 61 a = *((atomic_count_t *) ptr); 62 62 b = a + i; 63 63 64 64 asm volatile ( 65 65 "casx %0, %2, %1\n" … … 69 69 ); 70 70 } while (a != b); 71 71 72 72 return a; 73 73 } -
uspace/lib/c/arch/sparc64/include/libarch/syscall.h
r3061bc1 ra35b458 66 66 : "memory" 67 67 ); 68 68 69 69 return a1; 70 70 } -
uspace/lib/c/arch/sparc64/src/entry.S
r3061bc1 ra35b458 45 45 flushw 46 46 add %g0, -0x7ff, %fp 47 47 48 48 # Pass pcb_ptr as the first argument to __main() 49 49 mov %i1, %o0 -
uspace/lib/c/arch/sparc64/src/fibril.S
r3061bc1 ra35b458 68 68 # 69 69 flushw 70 70 71 71 ldx [%o0 + CONTEXT_OFFSET_SP], %sp 72 72 ldx [%o0 + CONTEXT_OFFSET_PC], %o7 -
uspace/lib/c/arch/sparc64/src/thread_entry.S
r3061bc1 ra35b458 30 30 31 31 .text 32 32 33 33 ## User-space thread entry point for all but the first threads. 34 34 # … … 50 50 call __thread_main ! %o0 contains address of uarg 51 51 or %l7, %lo(_gp), %l7 52 52 53 53 ! not reached
Note:
See TracChangeset
for help on using the changeset viewer.