Changeset 8565a42 in mainline for uspace/lib/c/arch/abs32le
- Timestamp:
- 2018-03-02T20:34:50Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1a81f69, d5e5fd1
- Parents:
- 3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
- git-committer:
- GitHub <noreply@…> (2018-03-02 20:34:50)
- Location:
- uspace/lib/c/arch/abs32le
- Files:
-
- 2 edited
-
_link.ld.in (modified) (3 diffs)
-
include/libarch/atomic.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/abs32le/_link.ld.in
r3061bc1 r8565a42 18 18 . = 0x1000 + SIZEOF_HEADERS; 19 19 #endif 20 20 21 21 .text : { 22 22 *(.text .text.*); 23 23 *(.rodata .rodata.*); 24 24 } :text 25 25 26 26 #ifdef LOADER 27 27 .interp : { … … 29 29 } :interp :text 30 30 #endif 31 31 32 32 . = . + 0x1000; 33 33 34 34 .data : { 35 35 *(.data); 36 36 *(.data.rel*); 37 37 } :data 38 38 39 39 .tdata : { 40 40 _tdata_start = .; … … 46 46 _tbss_end = .; 47 47 } :data 48 48 49 49 _tls_alignment = ALIGNOF(.tdata); 50 50 51 51 .sbss : { 52 52 *(.scommon); 53 53 *(.sbss); 54 54 } 55 55 56 56 .bss : { 57 57 *(COMMON); 58 58 *(.bss); 59 59 } :data 60 60 61 61 /DISCARD/ : { 62 62 *(*); -
uspace/lib/c/arch/abs32le/include/libarch/atomic.h
r3061bc1 r8565a42 49 49 return true; 50 50 } 51 51 52 52 return false; 53 53 } … … 57 57 /* On real hardware the increment has to be done 58 58 as an atomic action. */ 59 59 60 60 val->count++; 61 61 } … … 65 65 /* On real hardware the decrement has to be done 66 66 as an atomic action. */ 67 67 68 68 val->count++; 69 69 } … … 74 74 value and the increment have to be done as a single 75 75 atomic action. */ 76 76 77 77 atomic_count_t prev = val->count; 78 78 79 79 val->count++; 80 80 return prev; … … 86 86 value and the decrement have to be done as a single 87 87 atomic action. */ 88 88 89 89 atomic_count_t prev = val->count; 90 90 91 91 val->count--; 92 92 return prev;
Note:
See TracChangeset
for help on using the changeset viewer.
