* TMS9918A support once there is a suitable card
* Sound support once we have the core sound layer
+
+ * tty_setup
+
+ * Clean up the SIO init mess to just use otir properly
\ No newline at end of file
/* You'll need to define this if you have a Scott Baker SIO2 card, or submit
a fancier autodetect! Also you'll need to change rc2014.s */
#undef CONFIG_SIO_BAKER
+
+#define platform_copyright() // for now
\ No newline at end of file
{tbuf2, tbuf2, tbuf2, TTYSIZ, 0, TTYSIZ / 2},
};
-void tty_setup(uint8_t minor)
+void tty_setup(uint8_t minor, uint8_t flag)
{
if (minor == 1) {
}
.globl _program_vectors
.globl map_kernel
.globl map_process
+ .globl map_kernel_di
+ .globl map_process_di
.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_pages
.globl _platform_reboot
.globl _bufpool
+ .globl _int_disabled
; imported symbols
.globl _ramsize
;=========================================================================
+_int_disabled:
+ .db 1
+
platform_interrupt_all:
ret
; Outputs: none; all registers preserved
;=========================================================================
map_process_always:
+map_process_always_di:
push hl
ld hl,#U_DATA__U_PAGE
jr map_process_2_pophl_ret
; Outputs: none; A and HL destroyed
;=========================================================================
map_process:
+map_process_di:
ld a,h
or l ; HL == 0?
jr nz,map_process_2 ; HL == 0 - map the kernel
; Outputs: none; all registers preserved
;=========================================================================
map_kernel:
+map_kernel_di:
push hl
ld hl,#_kernel_pages
jr map_process_2_pophl_ret
ret
;=========================================================================
-; map_save - save the current page mapping to map_savearea
+; map_save_kernel - save the current page mapping to map_savearea and
+; switch to kernel maps
; Inputs: none
; Outputs: none
;=========================================================================
-map_save:
+map_save_kernel:
push hl
ld hl,(mpgsel_cache)
ld (map_savearea),hl
ld hl,(mpgsel_cache+2)
ld (map_savearea+2),hl
- pop hl
- ret
+ ld hl,#_kernel_pages
+ jr map_process_2_pophl_ret
;=========================================================================
; map_for_swap - map a page into a bank for swap I/O
; enable interrupts, if the ISR isn't already running
ld a, (U_DATA__U_ININTERRUPT)
+ ld (_int_disable),a
or a
ret nz ; in ISR, leave interrupts off
ei