CC:=${CC:C/^gcc/cc/}
COMPILER_TYPE:=ack
-PROGS= bootblock cdbootblock boot masterboot \
- jumpboot installboot edparams dosboot mkfile
+PROGS= bootblock cdbootblock bootexec boot masterboot \
+ jumpboot installboot edparams
SRCS.bootblock= bootblock.s
CPPFLAGS.bootblock.s= ${I86CPPFLAGS}
BINDIR.cdbootblock= /usr/mdec
MAN.cdbootblock=
-SRCS.boot= boothead.s boot.c bootimage.c rawfs86.c
+SRCS.bootexec= boothead.s boot.c bootimage.c rawfs86.c
CPPFLAGS.boothead.s= ${I86CPPFLAGS}
CPPFLAGS.boot.c= ${I86CPPFLAGS}
CPPFLAGS.bootimage.c= ${I86CPPFLAGS}
CPPFLAGS.rawfs86.c= ${I86CPPFLAGS}
-LDFLAGS.boot= ${I86LDFLAGS}
-DPADD.boot= ${LIBSYS}
-LDADD.boot= -lsys
-BINDIR.boot= /usr/mdec
-MAN.boot=
+LDFLAGS.bootexec= ${I86LDFLAGS}
+DPADD.bootexec= ${LIBSYS}
+LDADD.bootexec= -lsys
+BINDIR.bootexec= /usr/mdec
+MAN.bootexec=
-all: .PHONY bootsize
-bootsize: boot
- ${INSTALL} -S 22kb boot
+BINDIR.boot= /usr/mdec
+MAN.boot=
SRCS.masterboot= masterboot.s
CPPFLAGS.masterboot.s= ${I86CPPFLAGS}
BINDIR.edparams= /usr/bin
MAN.edparams=
-SRCS.dosboot= doshead.s dosboot.o bootimage.o rawfs86.o
-CPPFLAGS.dosboot.c= -DDOS $(I86CPPFLAGS)
-LDADD.dosboot= ${I86LDFLAGS} -lsys
-BINDIR.dosboot= /usr/mdec
-CPPFLAGS.doshead.s= -mi386
-MAN.dosboot=
-
-SRCS.mkfile= mkfhead.s mkfile.c
-CPPFLAGS.mkfile.s= ${I86CPPFLAGS}
-LDADD.mkfile= ${I86LDFLAGS} -lsys
-BINDIR.mkfile= /usr/mdec
-MAN.mkfile=
-
rawfs86.c: rawfs.c
ln -f rawfs.c rawfs86.c
edparams.c: boot.c
ln -f boot.c edparams.c
-dosboot.c: boot.c
- ln -f boot.c dosboot.c
-
cdbootblock.s: bootblock.s
ln -f bootblock.s cdbootblock.s
-mkfile.com: mkfile
-
-boot.com: dosboot
- ./a.out2com dosboot boot.com
+boot: bootexec
+ install -S 22kb bootexec
+ cp bootexec boot
CPPFLAGS= -I${MINIXSRCDIR}
AFLAGS= -I${MINIXSRCDIR}
STRIPFLAG= -s
-CLEANFILES+= rawfs86.c edparams.c cdbootblock.s dosboot.c
+CLEANFILES+= rawfs86.c edparams.c cdbootblock.s
.include <minix.prog.mk>
xor ax, ax
ret
-! int biosreadsectors(u32_t bufaddr, u32_t sector, u8_t count)
+! int readsectors(u32_t bufaddr, u32_t sector, u8_t count)
! int writesectors(u32_t bufaddr, u32_t sector, u8_t count)
! Read/write several sectors from/to the Minix virtual disk. Count
! must fit in a byte. The external variable vfd is the file handle.
! Returns 0 for success, otherwise the DOS error code.
!
-.define _biosreadsectors, _writesectors
+.define _readsectors, _writesectors
_writesectors:
push bp
mov bp, sp
movb 13(bp), 0x40 ! Code for a file write
jmp rwsec
-_biosreadsectors:
+_readsectors:
push bp
mov bp, sp
movb 13(bp), 0x3F ! Code for a file read