diff options
author | Christian Cunningham <cc@localhost> | 2022-03-22 21:15:27 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-03-22 21:15:27 -0700 |
commit | 04c9763cf581c3c9feeb51d88b638e38aad6f614 (patch) | |
tree | b1487c53ccc045f8c0e38466da164a79791c9c81 /src/sys | |
parent | 4481ae56e80a3a425cfcbf81cd75ccc1619cdeaa (diff) |
Test with microsecond counter
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/kernel.S | 7 |
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 |