diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2019-11-20 13:19:35 +0100 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2020-06-29 12:32:16 +0200 |
commit | e7ac5c8a43626625ac41f8466e7ab3a2b95e0613 (patch) | |
tree | 3f0983d1922d23150b26a7fedadb9bfaba2a1371 | |
parent | e813a40be0d928783ee7420405fed0d0a77f516e (diff) |
sparc,leon: avoid triggering TN-0009 bad sequence
-rw-r--r-- | cpukit/score/cpu/sparc/sparc-counter-asm.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/cpu/sparc/sparc-counter-asm.S b/cpukit/score/cpu/sparc/sparc-counter-asm.S index a1e18ae5b7..fb7783e096 100644 --- a/cpukit/score/cpu/sparc/sparc-counter-asm.S +++ b/cpukit/score/cpu/sparc/sparc-counter-asm.S @@ -31,8 +31,9 @@ SYM(_SPARC_Counter_read_default): sethi %hi(_SPARC_Counter + 12), %o1 ld [%o1 + %lo(_SPARC_Counter + 12)], %o0 add %o0, 1, %o0 + st %o0, [%o1 + %lo(_SPARC_Counter + 12)] jmp %o7 + 8 - st %o0, [%o1 + %lo(_SPARC_Counter + 12)] + nop PUBLIC(_SPARC_Counter_read_up) PUBLIC(_SPARC_Get_timecount_up) |