z80: allow fixedbank to used swapless
authorAlan Cox <alan@linux.intel.com>
Fri, 6 Apr 2018 18:36:46 +0000 (19:36 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 6 Apr 2018 18:36:46 +0000 (19:36 +0100)
Kernel/lib/z80fixedbank.s
Kernel/platform-mtx/kernel.def
Kernel/platform-trs80/kernel.def
Kernel/platform-ubee/kernel.def

index e39369c..03705f2 100644 (file)
@@ -21,7 +21,6 @@
         .globl _runticks
         .globl unix_syscall_entry
         .globl interrupt_handler
-       .globl _swapper
        .globl _need_resched
        .globl _nready
        .globl _platform_idle
@@ -93,6 +92,8 @@ _switchin:
        add hl, de      ; process ptr
        pop de
 
+.ifne CONFIG_SWAP
+       .globl _swapper
        ;
        ;       Always use the swapstack, otherwise when we call map_kernel
        ;       having copied the udata stash back to udata we will crap
@@ -124,7 +125,7 @@ _switchin:
        pop de
        pop hl
        di
-
+.endif
        ld a, (hl)
 not_swapped:
        ld hl, (U_DATA__U_PTAB)
index 4810f86..92367f4 100644 (file)
@@ -13,3 +13,5 @@ Z80_TYPE                  .equ 0
 VRAM_CH                            .equ 3            ; font data 0x1800-1BFF ?
 
 Z80_MMU_HOOKS              .equ 0
+
+CONFIG_SWAP                .equ 1
index d180395..9e704d6 100644 (file)
@@ -13,3 +13,5 @@ Z80_TYPE                  .equ 1
 NBUFS                      .equ 10
 
 Z80_MMU_HOOKS              .equ 0
+
+CONFIG_SWAP                .equ 1
index 1211ad4..86bb8db 100644 (file)
@@ -11,3 +11,5 @@ PROGLOAD                  .equ 0x0100
 Z80_TYPE                   .equ 0
 
 Z80_MMU_HOOKS              .equ 0
+
+CONFIG_SWAP                .equ 1