From: Alan Cox Date: Sun, 30 Sep 2018 14:34:04 +0000 (+0100) Subject: msx2: update tricks to manage int_disabled X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e5a2b4d78727d1535028a067047f94210e8ea3f4;p=FUZIX.git msx2: update tricks to manage int_disabled --- diff --git a/Kernel/platform-msx2/tricks.s b/Kernel/platform-msx2/tricks.s index c60fa07e..5354d464 100644 --- a/Kernel/platform-msx2/tricks.s +++ b/Kernel/platform-msx2/tricks.s @@ -16,7 +16,9 @@ .globl unix_syscall_entry .globl interrupt_handler .globl map_kernel + .globl _ramtop + .globl _int_disabled ; imported debug symbols .globl outstring, outde, outhl, outbc, outnewline, outchar, outcharhex @@ -108,6 +110,7 @@ _switchin: ; enable interrupts, if the ISR isn't already running ld a, (U_DATA__U_ININTERRUPT) + ld (_int_disabled),a or a ret nz ; in ISR, leave interrupts off ei