DSRCS = ../dev/devide.c ../dev/mbr.c ../dev/blkdev.c ../dev/devide_discard.c
DOBJS = $(patsubst ../dev/%.c,%.o, $(DSRCS))
+LSRCS = ../lib/68000exception.c
+LOBJS = $(patsubst ../lib/%.c,%.o, $(LSRCS))
+
COBJS = $(CSRCS:.c=$(BINEXT))
AOBJS = $(ASRCS:.S=.o)
-OBJS = $(COBJS) $(AOBJS) $(DOBJS)
+OBJS = $(COBJS) $(AOBJS) $(DOBJS) $(LOBJS)
CROSS_CCOPTS += -I../dev/
$(DOBJS): %.o: ../dev/%.c
$(CROSS_CC) $(CROSS_CCOPTS) -c $<
+$(LOBJS): %.o: ../lib/%.c
+ $(CROSS_CC) $(CROSS_CCOPTS) -c $<
+
tricks.S: ../lib/68000flat.S
clean:
$(CROSS_LD) -M -o fuzix.elf -T fuzix.ld \
crt0.o \
p68000.o ../start.o ../version.o ../lowlevel-68000.o \
- tricks.o main.o ../timer.o ../kdata.o devices.o \
+ tricks.o main.o ../timer.o ../kdata.o 68000exception.o devices.o \
../devio.o ../filesys.o ../process.o ../inode.o ../syscall_fs.o \
../syscall_proc.o ../syscall_other.o ../mm.o ../flat.o \
../tty.o ../devsys.o ../usermem.o ../syscall_fs2.o \
Propogate synchronous trap changes to Z80+MMU and Z180 illegal and maybe
generically jp 0 and 0 corruptor ?
-Move lots of p68000.S code into lowlevel-68000.S
-Need some kind of CPU specific C file (or a general one with ifdefs ?) and
-then move lots of platform/main.c into it.
+Clean up switchout/switchin/dofork/forkreturn. We only ever return from a
+fork() as the parent so the d0.w push/pop can go everywhere
68K has space to add ptrace?
DONE All I/O going via buffers
DONE Dynamic udata allocation
DONE Do we need the extra irqstack any more ?
+DONE Move lots of p68000.S code into lowlevel-68000.S
+DONE Need some kind of CPU specific C file (or a general one with ifdefs ?) and
+ then move lots of platform/main.c into it.
+