summaryrefslogtreecommitdiff
path: root/emux64/src
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-10-22 12:00:19 -0400
committerIan Moffett <ian@osmora.org>2025-10-22 12:00:19 -0400
commit761073aa5610b56bfb7ed608c358c3cf598a3000 (patch)
tree6a79eb5d7c3b9030ff596175a1c4c02ddaf356c9 /emux64/src
parent9685552a509ea460c214888443cb1c93adc58e31 (diff)
emux64: Move CPU BUA base to memmap.hmain
The memmap.h header will contain where the memory maps are located. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'emux64/src')
-rw-r--r--emux64/src/include/cpu/cpu.h4
-rw-r--r--emux64/src/include/memmap.h36
2 files changed, 37 insertions, 3 deletions
diff --git a/emux64/src/include/cpu/cpu.h b/emux64/src/include/cpu/cpu.h
index 84c8832..482aae3 100644
--- a/emux64/src/include/cpu/cpu.h
+++ b/emux64/src/include/cpu/cpu.h
@@ -37,9 +37,7 @@
#include <stdint.h>
#include <stddef.h>
-
-/* Bring up area physical base */
-#define CPU_BUA_PBASE 0xFFF00000
+#include "memmap.h"
/* Register type counts */
#define N_GPREG 16
diff --git a/emux64/src/include/memmap.h b/emux64/src/include/memmap.h
new file mode 100644
index 0000000..3060f5c
--- /dev/null
+++ b/emux64/src/include/memmap.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2025 Ian Marco Moffett and the Osmora Team.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of Hyra nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef MEMMAP_H
+#define MEMMAP_H 1
+
+/* Bring up area physical base */
+#define CPU_BUA_PBASE 0xFFF00000
+
+#endif /* !MEMMAP_H */