Changeset 8565a42 in mainline for uspace/lib/c/arch/riscv64
- 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/riscv64
- Files:
-
- 2 edited
-
_link.ld.in (modified) (6 diffs)
-
include/libarch/atomic.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/riscv64/_link.ld.in
r3061bc1 r8565a42 19 19 . = 0x1000 + SIZEOF_HEADERS; 20 20 #endif 21 21 22 22 .text : { 23 23 *(.text .text.*); … … 25 25 *(.srodata .srodata.*); 26 26 } :text 27 27 28 28 #ifdef LOADER 29 29 .interp : { … … 31 31 } :interp :text 32 32 #endif 33 33 34 34 . = . + 0x1000; 35 35 36 36 .data : { 37 37 *(.data); … … 39 39 *(.data.rel*); 40 40 } :data 41 41 42 42 .tdata : { 43 43 _tdata_start = .; … … 49 49 _tbss_end = .; 50 50 } :data 51 51 52 52 _tls_alignment = ALIGNOF(.tdata); 53 53 54 54 .sbss : { 55 55 *(.scommon); 56 56 *(.sbss); 57 57 } 58 58 59 59 .bss : { 60 60 *(COMMON); 61 61 *(.bss); 62 62 } :data 63 63 64 64 #ifdef CONFIG_LINE_DEBUG 65 65 .comment 0 : { *(.comment); } :debug … … 74 74 .debug_str 0 : { *(.debug_str); } :debug 75 75 #endif 76 76 77 77 /DISCARD/ : { 78 78 *(*); -
uspace/lib/c/arch/riscv64/include/libarch/atomic.h
r3061bc1 r8565a42 51 51 return true; 52 52 } 53 53 54 54 return false; 55 55 } … … 59 59 /* On real hardware the increment has to be done 60 60 as an atomic action. */ 61 61 62 62 val->count++; 63 63 } … … 67 67 /* On real hardware the decrement has to be done 68 68 as an atomic action. */ 69 69 70 70 val->count++; 71 71 } … … 76 76 value and the increment have to be done as a single 77 77 atomic action. */ 78 78 79 79 atomic_count_t prev = val->count; 80 80 81 81 val->count++; 82 82 return prev; … … 88 88 value and the decrement have to be done as a single 89 89 atomic action. */ 90 90 91 91 atomic_count_t prev = val->count; 92 92 93 93 val->count--; 94 94 return prev;
Note:
See TracChangeset
for help on using the changeset viewer.
