aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-31 23:32:42 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-31 23:32:42 +0100
commitfc852b23608c2162b264302e6f48e5f8b3b0b512 (patch)
tree12d63540716c0a3487165f638d0563b9b28b1035
parent13199395faf225fe78d2ef4540ea3e75edb4e640 (diff)
downloadrpi-MMU-example-fc852b23608c2162b264302e6f48e5f8b3b0b512.tar.gz
rpi-MMU-example-fc852b23608c2162b264302e6f48e5f8b3b0b512.zip
move ARM_BASE definition to global.h
-rw-r--r--bcmclock.h4
-rw-r--r--global.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/bcmclock.h b/bcmclock.h
index 7fd192d..40d0559 100644
--- a/bcmclock.h
+++ b/bcmclock.h
@@ -15,10 +15,6 @@
#define ST_C2 (ST_BASE + 0x14) // System Timer Compare 2
#define ST_C3 (ST_BASE + 0x18) // System Timer Compare 3
-// ARM control block
-// called "base address for the ARM interrupt register" elsewhere
-#define ARM_BASE (PERIF_BASE + 0xB000)
-
#define ARM_IRQ_BASIC_PENDING (ARM_BASE + 0x200)
#define ARM_IRQ_PENDING_1 (ARM_BASE + 0x204)
#define ARM_IRQ_PENDING_2 (ARM_BASE + 0x208)
diff --git a/global.h b/global.h
index 202ca85..34867a1 100644
--- a/global.h
+++ b/global.h
@@ -23,4 +23,8 @@
// (as in sane kernels - like linux, not like in wiki.osdev codes...)
#define GPIO_BASE (PERIF_BASE + 0x200000)
+// ARM control block
+// called "base address for the ARM interrupt register" elsewhere
+#define ARM_BASE (PERIF_BASE + 0xB000)
+
#endif // GLOBAL_H