aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-19 11:15:19 -0700
committerChristian Cunningham <cc@localhost>2022-03-19 11:15:19 -0700
commit22cdaae7a86ff4c457a8770d0af633cbdb310b53 (patch)
treea75d57c99b4f5979a3b4b2f18f44f86e1e7d711f /src/util
parent875da917d07a4ff6620f41825a47f53941636214 (diff)
Rename variable to more expressive name
Diffstat (limited to 'src/util')
-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);