aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/status.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/util/status.c b/src/util/status.c
index f111251..cfadd19 100644
--- a/src/util/status.c
+++ b/src/util/status.c
@@ -112,15 +112,16 @@ void status(void)
draw_hex32(24, 7, coren);
// Report Sys Timer Stataus
+ unsigned long systime;
draw_string(0, 8, "Sys Timer Status");
- coren = *(volatile unsigned long*)SYS_TIMER_CS;
- draw_hex32(17, 8, coren);
+ systime = *(volatile unsigned long*)SYS_TIMER_CS;
+ draw_hex32(17, 8, systime);
draw_string(17+8, 8, ":");
unsigned long long tval = get_time();
draw_hex32(17+8, 8, (tval >> 32));
draw_hex32(17+8+8, 8, tval);
- coren = *(volatile unsigned long*)SYS_TIMER_C0;
- draw_hex32(19+14+8+1, 8, coren);
+ systime = *(volatile unsigned long*)SYS_TIMER_C0;
+ draw_hex32(19+14+8+1, 8, systime);
draw_string(19+14+9+8, 8, "|");
draw_string(19+14+18, 8, " ");
draw_u10(19+14+18, 8, ((unsigned long)tval)/1000000);