aboutsummaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-22 21:15:27 -0700
committerChristian Cunningham <cc@localhost>2022-03-22 21:15:27 -0700
commit04c9763cf581c3c9feeb51d88b638e38aad6f614 (patch)
treeb1487c53ccc045f8c0e38466da164a79791c9c81 /src/sys
parent4481ae56e80a3a425cfcbf81cd75ccc1619cdeaa (diff)
Test with microsecond counter
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/kernel.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sys/kernel.S b/src/sys/kernel.S
index 8793d84..71b22a1 100644
--- a/src/sys/kernel.S
+++ b/src/sys/kernel.S
@@ -11,6 +11,13 @@ kernel_main:
mov r1, #0
mov r3, #0xFF00
bl draw_cstring
+ // Initialize System Cycle Counter
+ mov r0, #1
+ mcr p15, 0, r0, c9, c14, 0
+ mov r0, #1
+ mcr p15, 0, r0, c9, c12, 0
+ mov r0, #0x80000000
+ mcr p15, 0, r0, c9, c12, 1
// Intentional undefined instruction
// .word 0xf7f0a000