Untested as banked not yet converted
.globl _getproc
.globl _trap_monitor
.globl trap_illegal
- .globl _inint
.globl _switchout
.globl _switchin
.globl _low_bank
; here
;
- ; set inint to false
- xor a
- ld (_inint), a
-
; Stash the uarea back into process memory
ld hl, (U_DATA__U_PAGE)
ld a, l
pop hl ; return code
; enable interrupts, if the ISR isn't already running
- ld a, (_inint)
+ ld a, (U_DATA__U_ININTERRUPT)
or a
- ret z ; in ISR, leave interrupts off
+ ret nz ; in ISR, leave interrupts off
ei
ret ; return with interrupts on
.globl current_map
.globl switch_bank
- .globl _kernel_flag
+ .globl _need_resched
; exported debugging tools
.globl _trap_monitor
ret
_tmpout:
.db 1
-_kernel_flag:
- .db 1
.area _COMMONDATA
current_map: ; place to store current page number. Is needed
ksave_map:
.db 0
+_need_resched:
+ .db 0
+
.area _COMMONMEM
;
; Banking helpers