diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-09-15 15:46:31 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-10-20 11:16:54 +0200 |
commit | abb2f8bd6635457fcac4ddbd0cb284b623b5c602 (patch) | |
tree | a195c62faecafb702e708bd41bd447152f56f39e /bsps/sparc/shared/start | |
parent | bsps/leon3: Simplify clock and CPU counter (diff) | |
download | rtems-abb2f8bd6635457fcac4ddbd0cb284b623b5c602.tar.bz2 |
bsps/leon3: Use custom CPU counter implementation
Merge the timecounter and CPU counter support for the leon3 BSP family.
Remove now unused functions from the CPU counter support of the erc32
and leon3 BSPs.
Update #4954.
Diffstat (limited to 'bsps/sparc/shared/start')
-rw-r--r-- | bsps/sparc/shared/start/sparc-counter-asm.S | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/bsps/sparc/shared/start/sparc-counter-asm.S b/bsps/sparc/shared/start/sparc-counter-asm.S index 8b988bf3ed..590d77050d 100644 --- a/bsps/sparc/shared/start/sparc-counter-asm.S +++ b/bsps/sparc/shared/start/sparc-counter-asm.S @@ -74,25 +74,6 @@ SYM(_SPARC_Counter_read_default): jmp %o7 + 8 nop - PUBLIC(_SPARC_Counter_read_up) - PUBLIC(_SPARC_Get_timecount_up) -SYM(_SPARC_Counter_read_up): -SYM(_SPARC_Get_timecount_up): - sethi %hi(_SPARC_Counter + 8), %o0 - ld [%o0 + %lo(_SPARC_Counter + 8)], %o0 - jmp %o7 + 8 - ld [%o0], %o0 - - PUBLIC(_SPARC_Counter_read_down) - PUBLIC(_SPARC_Get_timecount_down) -SYM(_SPARC_Counter_read_down): -SYM(_SPARC_Get_timecount_down): - sethi %hi(_SPARC_Counter + 8), %o0 - ld [%o0 + %lo(_SPARC_Counter + 8)], %o0 - ld [%o0], %o0 - jmp %o7 + 8 - xnor %g0, %o0, %o0 - /* * For the corresponding C code is something like this: * @@ -168,10 +149,3 @@ SYM(_SPARC_Get_timecount_clock): add %o4, %o5, %o4 jmp %o7 + 8 sub %o4, %o0, %o0 - - PUBLIC(_SPARC_Counter_read_asr23) - PUBLIC(_SPARC_Get_timecount_asr23) -SYM(_SPARC_Counter_read_asr23): -SYM(_SPARC_Get_timecount_asr23): - jmp %o7 + 8 - mov %asr23, %o0 |