From: Alan Cox Date: Fri, 28 Sep 2018 22:39:05 +0000 (+0100) Subject: ubee: update to new behaviour X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=050097af728a6c5dd9a54845fcd19e800e299a1a;p=FUZIX.git ubee: update to new behaviour --- diff --git a/Kernel/platform-ubee/devtty.c b/Kernel/platform-ubee/devtty.c index 4b890252..2ee600a4 100644 --- a/Kernel/platform-ubee/devtty.c +++ b/Kernel/platform-ubee/devtty.c @@ -59,7 +59,7 @@ void tty_putc(uint8_t minor, unsigned char c) vtoutput(&c, 1); } -void tty_setup(uint8_t minor) +void tty_setup(uint8_t minor, uint8_t flags) { minor; } diff --git a/Kernel/platform-ubee/ubee.s b/Kernel/platform-ubee/ubee.s index 412e231c..59d4ad14 100644 --- a/Kernel/platform-ubee/ubee.s +++ b/Kernel/platform-ubee/ubee.s @@ -10,14 +10,18 @@ .globl interrupt_handler .globl _program_vectors .globl map_kernel + .globl map_kernel_di .globl map_process + .globl map_process_di .globl map_process_a .globl map_process_always - .globl map_save + .globl map_process_always_di + .globl map_save_kernel .globl map_restore .globl map_for_swap .globl platform_interrupt_all .globl _kernel_flag + .globl _int_disabled ; exported debugging tools .globl _platform_monitor @@ -60,6 +64,9 @@ _bufpool: ; .area _COMMONMEM +_int_disabled: + .db 1 + platform_interrupt_all: in a,(0xef) ; FIXME: remove this line once debugged ret @@ -359,6 +366,7 @@ _program_vectors: ; The lower 32K is switched between the various user banks. ; map_kernel: +map_kernel_di: push af ld a, #0x0C ; bank 0, 1 no ROM or video ld (mapreg), a @@ -366,6 +374,7 @@ map_kernel: pop af ret map_process: +map_process_di: ld a, h or l jr z, map_kernel @@ -378,6 +387,7 @@ map_process_a: ; used by bankfork ret map_process_always: +map_process_always_di: push af push hl ld hl, #U_DATA__U_PAGE @@ -386,9 +396,13 @@ map_process_always: pop af ret -map_save: push af +map_save_kernel: + push af ld a, (mapreg) ld (mapsave), a + ld a, #0x0C ; bank 0, 1 no ROM or video + ld (mapreg), a + out (0x50), a pop af ret