cromemco: commit initial pieces on the udata side
authorAlan Cox <alan@linux.intel.com>
Sun, 2 Sep 2018 20:53:08 +0000 (21:53 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 2 Sep 2018 20:53:08 +0000 (21:53 +0100)
We need to revisit all this due to the lack of a true common

Kernel/platform-cromemco/commonmem.s [new file with mode: 0644]
Kernel/platform-cromemco/kernel.def [new file with mode: 0644]

diff --git a/Kernel/platform-cromemco/commonmem.s b/Kernel/platform-cromemco/commonmem.s
new file mode 100644 (file)
index 0000000..522503a
--- /dev/null
@@ -0,0 +1,9 @@
+;
+;      Common on z80pack is at 0xF000 as defined by hardware.
+;
+
+        .module commonmem
+
+        .area _COMMONMEM
+
+       .include "../cpu-z80/std-commonmem.s"
diff --git a/Kernel/platform-cromemco/kernel.def b/Kernel/platform-cromemco/kernel.def
new file mode 100644 (file)
index 0000000..f3a5687
--- /dev/null
@@ -0,0 +1,16 @@
+; UZI mnemonics for memory addresses etc
+
+U_DATA                      .equ 0xF000       ; (this is struct u_data from kernel.h)
+U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
+
+U_DATA_STASH               .equ 0xED00       ; ED00-EFFF
+
+PROGBASE                   .equ 0x0000
+PROGLOAD                   .equ 0x0100
+
+Z80_TYPE                   .equ 1
+
+Z80_MMU_HOOKS              .equ 0
+
+
+CONFIG_SWAP                .equ 0