udata: Fix the remaining legacy udata sizes
authorAlan Cox <alan@linux.intel.com>
Sun, 27 Jan 2019 21:58:36 +0000 (21:58 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 27 Jan 2019 21:58:36 +0000 (21:58 +0000)
In some cases this should also fix a few bugs

23 files changed:
Kernel/platform-appleiie/kernel.def
Kernel/platform-dragon/kernel.def
Kernel/platform-micropack/kernel.def
Kernel/platform-msx2/kernel.def
Kernel/platform-mtx/config.h
Kernel/platform-mtx/kernel.def
Kernel/platform-n8vem-mark4/kernel.def
Kernel/platform-p112/kernel.def
Kernel/platform-pcw8256/kernel.def
Kernel/platform-px4plus/kernel.def
Kernel/platform-rc2014-tiny/kernel.def
Kernel/platform-rc2014/kernel.def
Kernel/platform-socz80/kernel.def
Kernel/platform-tgl6502/kernel.def
Kernel/platform-ubee/config.h
Kernel/platform-ubee/kernel.def
Kernel/platform-v65/kernel.def
Kernel/platform-z80pack/config.h
Kernel/platform-z80pack/kernel.def
Kernel/platform-z80pack32/kernel.def
Kernel/platform-zeta-v2/kernel.def
Kernel/platform-zx128/config.h
Kernel/platform-zx128/kernel.def

index 61bfff4..a27725b 100644 (file)
@@ -2,8 +2,8 @@
 
 ; (this is struct u_data from kernel.h)
 U_DATA                      .set $0200
-; 256+256+256 bytes.
-U_DATA__TOTALSIZE           .set $300        
+; 256+256 bytes.
+U_DATA__TOTALSIZE           .set $200
 
 PROGLOAD                   .set $2000
 ZPBASE                     .set $0
index c14daee..6374e0e 100644 (file)
@@ -1,7 +1,7 @@
 ; UZI mnemonics for memory addresses etc
 
-U_DATA                      equ 0x7D00       ; (this is struct u_data from kernel.h)
-U_DATA__TOTALSIZE           equ 0x300        ; 256+256+256 bytes.
+U_DATA                      equ 0x7E00       ; (this is struct u_data from kernel.h)
+U_DATA__TOTALSIZE           equ 0x0200        ; 256+256+256 bytes.
 
 
 SAM_USER macro
index ab108d4..41f169e 100644 (file)
@@ -1,7 +1,7 @@
 ; UZI mnemonics for memory addresses etc
 
 U_DATA                      .equ 0x8200       ; (this is struct u_data from kernel.h)
-U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
+U_DATA__TOTALSIZE           .equ 0x200        ; 256+256+256 bytes.
 
 Z80_TYPE                   .equ 0
 
index cd4444a..988b2b2 100644 (file)
@@ -1,7 +1,7 @@
 ; 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__TOTALSIZE           .equ 0x200        ; 256+256 bytes.
 
 ; as far as I can tell either is allowed by the spec
 
index 6ce6049..5d9e88b 100644 (file)
@@ -29,7 +29,7 @@
 #define TICKSPERSEC 50      /* Ticks per second */
 #define PROGBASE    0x0000  /* also data base */
 #define PROGLOAD    0x0100  /* also data base */
-#define PROGTOP     0xBD00  /* Top of program, base of U_DATA copy */
+#define PROGTOP     0xBE00  /* Top of program, base of U_DATA copy */
 #define PROC_SIZE   48     /* Memory needed per process */
 
 /* Undefine this section if you don't have a silicon disc for swap. It's not
index 92367f4..2c11145 100644 (file)
@@ -1,9 +1,9 @@
 ; 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__TOTALSIZE           .equ 0x200        ; 256+256 bytes.
 
-U_DATA_STASH               .equ 0xBD00       ; BD00-BFFF
+U_DATA_STASH               .equ 0xBE00       ; BE00-BFFF
 
 PROGBASE                   .equ 0x0000
 PROGLOAD                   .equ 0x0100
index c48fab5..ad26ba3 100644 (file)
@@ -2,7 +2,7 @@
 
 ; Move down to 0xF600 to fit the monitor in
 U_DATA                      .equ 0xF800       ; (this is struct u_data from kernel.h)
-U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
+U_DATA__TOTALSIZE           .equ 0x200        ; 256+256 bytes.
 Z80_TYPE                    .equ 2
 
 OS_BANK                     .equ 0x00         ; value from include/kernel.h
index dfcbfa6..7d15ed7 100644 (file)
@@ -1,7 +1,7 @@
 ; UZI mnemonics for memory addresses etc
 
 U_DATA                      .equ 0xF800       ; (this is struct u_data from kernel.h)
-U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
+U_DATA__TOTALSIZE           .equ 0x200        ; 256+256 bytes.
 
 OS_BANK                     .equ 0x00         ; value from include/kernel.h
 
index 884b035..c33b656 100644 (file)
@@ -1,7 +1,7 @@
 ; UZI mnemonics for memory addresses etc
 
 U_DATA                      .equ 0xF400       ; (this is struct u_data from kernel.h)
-U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
+U_DATA__TOTALSIZE           .equ 0x200        ; 256+256 bytes.
 
 Z80_TYPE                   .equ 0            ; FIXME: check
 
index bc16610..10a5d13 100644 (file)
@@ -1,7 +1,7 @@
 ; UZI mnemonics for memory addresses etc
 
 U_DATA                      .equ 0x0100       ; (this is struct u_data from kernel.h)
-U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
+U_DATA__TOTALSIZE           .equ 0x200        ; 256+256+256 bytes.
 
 VIDBASE                            .equ 0xF8         ; Video for now
 
index 7941c54..c971ef3 100644 (file)
@@ -1,7 +1,7 @@
 ; FUZIX mnemonics for memory addresses etc
 
 U_DATA                 .equ    0xC000  ; (this is struct u_data from kernel.h)
-U_DATA__TOTALSIZE      .equ    0x300   ; 256+256+256 bytes.
+U_DATA__TOTALSIZE      .equ    0x200   ; 256+256 bytes.
 Z80_TYPE               .equ    0       ; CMOS
 
 Z80_MMU_HOOKS          .equ 0
index c0714fc..d0bc0db 100644 (file)
@@ -1,7 +1,7 @@
 ; FUZIX mnemonics for memory addresses etc
 
 U_DATA                 .equ    0xD000  ; (this is struct u_data from kernel.h)
-U_DATA__TOTALSIZE      .equ    0x300   ; 256+256+256 bytes.
+U_DATA__TOTALSIZE      .equ    0x200   ; 256+256 bytes.
 Z80_TYPE               .equ    0       ; just a old good Z80
 USE_FANCY_MONITOR      .equ    1       ; disabling this saves around approx 0.5KB
 
index 3615372..e3c7b6d 100644 (file)
@@ -1,7 +1,7 @@
 ; UZI mnemonics for memory addresses etc
 
 U_DATA                      .equ 0xf800       ; (this is struct u_data from kernel.h)
-U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
+U_DATA__TOTALSIZE           .equ 0x200        ; 256+256 bytes.
 
 Z80_TYPE                   .equ 0            ; Actually a T80
 
index 61bfff4..c213cb7 100644 (file)
@@ -3,7 +3,7 @@
 ; (this is struct u_data from kernel.h)
 U_DATA                      .set $0200
 ; 256+256+256 bytes.
-U_DATA__TOTALSIZE           .set $300        
+U_DATA__TOTALSIZE           .set $200
 
 PROGLOAD                   .set $2000
 ZPBASE                     .set $0
index 8a81a90..dc761df 100644 (file)
@@ -40,7 +40,7 @@
 #define TICKSPERSEC 10     /* Ticks per second */
 #define PROGBASE    0x0000  /* Base of user  */
 #define PROGLOAD    0x0100  /* Load and run here */
-#define PROGTOP     0x7D00  /* Top of program, base of U_DATA stash */
+#define PROGTOP     0x7E00  /* Top of program, base of U_DATA stash */
 #define PROC_SIZE   32             /* Memory needed per process */
 
 #define SWAPDEV     (swap_dev)
index d07a89f..49a56f9 100644 (file)
@@ -1,9 +1,9 @@
 ; 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__TOTALSIZE           .equ 0x200        ; 256+256+256 bytes.
 
-U_DATA_STASH               .equ 0x7D00       ; BD00-BFFF
+U_DATA_STASH               .equ 0x7E00       ; 7E00-7FFF
 
 PROGBASE                   .equ 0x0000
 PROGLOAD                   .equ 0x0100
index 61bfff4..a27725b 100644 (file)
@@ -2,8 +2,8 @@
 
 ; (this is struct u_data from kernel.h)
 U_DATA                      .set $0200
-; 256+256+256 bytes.
-U_DATA__TOTALSIZE           .set $300        
+; 256+256 bytes.
+U_DATA__TOTALSIZE           .set $200
 
 PROGLOAD                   .set $2000
 ZPBASE                     .set $0
index aa5f3e2..38d2d4d 100644 (file)
@@ -31,7 +31,7 @@
 #define TICKSPERSEC 100   /* Ticks per second */
 #define PROGBASE    0x0000  /* also data base */
 #define PROGLOAD    0x0100  /* also data base */
-#define PROGTOP     0xED00  /* Top of program, base of U_DATA copy */
+#define PROGTOP     0xEE00  /* Top of program, base of U_DATA copy */
 #define PROC_SIZE   60   /* Memory needed per process */
 
 #define SWAP_SIZE   0x78       /* 60K in blocks (we actually don't need the low 256) */
index ea79959..7cc78f7 100644 (file)
@@ -1,9 +1,9 @@
 ; 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__TOTALSIZE           .equ 0x200        ; 256+256 bytes.
 
-U_DATA_STASH               .equ 0xED00       ; ED00-EFFF
+U_DATA_STASH               .equ 0xEE00       ; EE00-EFFF
 
 PROGBASE                   .equ 0x0000
 PROGLOAD                   .equ 0x0100
index 668c489..45171e3 100644 (file)
@@ -1,10 +1,10 @@
 ; 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__TOTALSIZE           .equ 0x200        ; 256+256+256 bytes.
 
-U_STASH_HIGH               .equ 0xBD00       ; BD00-BFFF
-U_STASH_LOW                .equ 0x7D00       ; 7D00-BFFF
+U_STASH_HIGH               .equ 0xBE00       ; BE00-BFFF
+U_STASH_LOW                .equ 0x7E00       ; 7E00-BFFF
 
 
 Z80_TYPE                   .equ 0
index 43fe859..c63ed2b 100644 (file)
@@ -1,7 +1,7 @@
 ; FUZIX 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__TOTALSIZE      .equ    0x200   ; 256+256+256 bytes.
 Z80_TYPE               .equ    0       ; just an old good Z80
 USE_FANCY_MONITOR      .equ    1       ; disabling this saves around approx 0.5KB
 
index 90470d8..d32b73d 100644 (file)
@@ -42,7 +42,7 @@
 #define TICKSPERSEC 50   /* Ticks per second */
 #define PROGBASE    0x8000  /* also data base */
 #define PROGLOAD    0x8000  /* also data base */
-#define PROGTOP     0xFC00  /* Top of program, base of U_DATA copy */
+#define PROGTOP     0xFD00  /* Top of program, base of U_DATA copy */
 #define PROC_SIZE   32   /* Memory needed per process */
 
 #define BOOT_TTY (513)  /* Set this to default device for stdio, stderr */
index 2f6a24f..9f29146 100644 (file)
@@ -1,9 +1,9 @@
 ; UZI mnemonics for memory addresses etc
 
 U_DATA                      .equ 0x4000       ; (this is struct u_data from kernel.h)
-U_DATA__TOTALSIZE           .equ 0x300        ; 256+256+256 bytes.
+U_DATA__TOTALSIZE           .equ 0x200        ; 256+256 bytes.
 
-U_DATA_STASH               .equ 0xFC00       ; FC00-FEFF
+U_DATA_STASH               .equ 0xFD00       ; FD00-FEFF
 
 Z80_TYPE                   .equ 1