DISCARD_DOBJS = $(patsubst ../dev/%.c,%.rel, $(DISCARD_DSRCS))
OBJS = $(COBJS) $(AOBJS) $(DOBJS) $(DISCARD_COBJS) $(DISCARD_DOBJS) $(COMMON_COBJS)
-JUNK = $(CSRCS:.c=.lst) $(CSRCS:.c=.asm) $(CSRCS:.c=.sym) $(ASRCS:.s=.lst) $(ASRCS:.s=.sym) $(CSRCS:.c=.rst) $(ASRCS:.s=.rst)
-
all: $(OBJS)
$(AOBJS): %.rel: %.s
$(DISCARD_DOBJS): %.rel: ../dev/%.c
$(CROSS_CC) $(CROSS_CCOPTS) $(CROSS_CC_SEGDISC) -c $<
clean:
- rm -f $(OBJS) $(JUNK) core *~
+ rm -f $(OBJS) *.lst *.asm *.sym *.rst *.lk core *~
image:
dd if=../fuzix.bin of=../fuzix.com bs=256 skip=1
#define MAX_BLKDEV 1 /* Single SD drive */
#define CONFIG_RTC
//#define CONFIG_RTC_RP5C01_NVRAM
+
+#define platform_copyright()
{
}
-void tty_setup(uint8_t minor)
+void tty_setup(uint8_t minor, uint8_t flags)
{
minor;
- /* setup termios to use msx keys */
+ /* setup termios to use msx keys: FIXME */
ttydata[minor].termios.c_cc[VERASE] = KEY_BS;
ttydata[minor].termios.c_cc[VSTOP] = KEY_STOP;
ttydata[minor].termios.c_cc[VSTART] = KEY_STOP;
.globl map_process
.globl _map_kernel
.globl map_process_always
- .globl map_save
+ .globl map_kernel_di
+ .globl map_process_di
+ .globl map_process_always_di
+ .globl map_save_kernel
.globl map_restore
.globl enaslt
.globl _mapslot_bank1
.globl _mapslot_bank2
.globl _need_resched
.globl _bufpool
+ .globl _int_disabled
; video driver
.globl _vtinit
_need_resched:
.db 0
+_int_disabled:
+ .db 1
; -----------------------------------------------------------------------------
; KERNEL MEMORY BANK (below 0xF000, only accessible when the kernel is mapped)
; All registers preserved
;
map_process_always:
+map_process_always_di:
push hl
ld hl, #U_DATA__U_PAGE
call map_process_2
; HL is the page table to use, A is eaten, HL is eaten
;
map_process:
+map_process_di:
ld a, h
or l
jr nz, map_process_2
; so our cached copy is correct.
;
_map_kernel:
+map_kernel_di:
map_kernel:
push hl
ld hl, #map_kernel_data
;
; Save the current mapping.
;
-map_save:
+map_save_kernel:
push hl
ld hl, (map_table)
ld (map_savearea), hl
ld hl, (map_table + 2)
ld (map_savearea + 2), hl
+ ld hl, #map_kernel_data
+ call map_process_2
pop hl
ret