Fix freudian slip

This commit is contained in:
TuxSH committed 2018-03-07 14:34:47 +01:00
1 parent 6592744b3b
commit 71f01aaa43
3 files changed
+19 -19

No files matched your search

+2 -2
View File
@@ -19,7 +19,7 @@
#include "interrupt.h" #include "interrupt.h"
#include "cpu_context.h" #include "cpu_context.h"
#include "actmon.h" #include "actmon.h"
#include "syscrt0.h" #include "sysctr0.h"
#include "mmu.h" #include "mmu.h"
#include "arm.h" #include "arm.h"
@@ -192,7 +192,7 @@ void setup_current_core_state(void) {
__isb(); __isb();
SET_SYSREG(cntfrq_el0, MAKE_SYSCRT0_REG(0x20)); /* TODO: Reg name. */ SET_SYSREG(cntfrq_el0, MAKE_SYSCTR0_REG(0x20)); /* TODO: Reg name. */
SET_SYSREG(cnthctl_el2, 3ull); SET_SYSREG(cnthctl_el2, 3ull);
__isb(); __isb();
-17
View File
@@ -1,17 +0,0 @@
#ifndef EXOSPHERE_SYSCRT0_H
#define EXOSPHERE_SYSCRT0_H
#include <stdint.h>
#include "memory_map.h"
/* Exosphere driver for the Tegra X1 SYSCRT0 Registers. */
#define SYSCRT0_BASE (MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_SYSCTR0))
#define MAKE_SYSCRT0_REG(n) MAKE_REG32(SYSCRT0_BASE + n)
#endif
+17
View File
@@ -0,0 +1,17 @@
#ifndef EXOSPHERE_SYSCTR0_H
#define EXOSPHERE_SYSCTR0_H
#include <stdint.h>
#include "memory_map.h"
/* Exosphere driver for the Tegra X1 SYSCRT0 Registers. */
#define SYSCTR0_BASE (MMIO_GET_DEVICE_ADDRESS(MMIO_DEVID_SYSCTR0))
#define MAKE_SYSCTR0_REG(n) MAKE_REG32(SYSCTR0_BASE + n)
#endif