diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2017-09-12 11:24:48 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2017-10-25 12:52:33 +0200 |
commit | cfc360410014bec4043f92122d880857e4544974 (patch) | |
tree | d26199b657227c690160583f5a9f647e0a803c70 /c/src/lib/libbsp/sparc/leon3/include/leon.h | |
parent | smptests: Remove duplicate Makefile targets (diff) | |
download | rtems-cfc360410014bec4043f92122d880857e4544974.tar.bz2 |
leon,gr740: start ASR22:23 up-counter on boot by writing ASR22
According to data sheet bit 31 in ASR22 must be written with a zero
to start the up-counter. GRMON starts the up-counter for us. This
patch is important when running in "flight" from ROM without GRMON.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/include/leon.h')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/include/leon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/include/leon.h b/c/src/lib/libbsp/sparc/leon3/include/leon.h index 9b2597f79f..758b760b0b 100644 --- a/c/src/lib/libbsp/sparc/leon3/include/leon.h +++ b/c/src/lib/libbsp/sparc/leon3/include/leon.h @@ -482,7 +482,7 @@ static inline uint32_t leon3_up_counter_high(void) static inline void leon3_up_counter_enable(void) { __asm__ volatile ( - "mov %g0, %asr23" + "mov %g0, %asr22" ); } |