mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-25 06:45:10 +02:00
Turbo C 2.01 and Linux cross-compilation compatibility fixes.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1470 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
fb847baa95
commit
8cce4e7d84
@ -303,18 +303,18 @@ int int21_fat32(lregs *r)
|
|||||||
if ((UWORD) xdffp->xdff_function == 0x03)
|
if ((UWORD) xdffp->xdff_function == 0x03)
|
||||||
{
|
{
|
||||||
/* FAT mirroring */
|
/* FAT mirroring */
|
||||||
if (value != 0xFFFFFFFF && (value & ~(0xf | 0x80)))
|
if (value != 0xFFFFFFFFUL && (value & ~(0xf | 0x80)))
|
||||||
return DE_INVLDPARM;
|
return DE_INVLDPARM;
|
||||||
xdffp->xdff_f.setget.old = dpb->dpb_xflags;
|
xdffp->xdff_f.setget.old = dpb->dpb_xflags;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* root cluster */
|
/* root cluster */
|
||||||
if (value != 0xFFFFFFFF && (value < 2 || value > dpb->dpb_xsize))
|
if (value != 0xFFFFFFFFUL && (value < 2 || value > dpb->dpb_xsize))
|
||||||
return DE_INVLDPARM;
|
return DE_INVLDPARM;
|
||||||
xdffp->xdff_f.setget.old = dpb->dpb_xrootclst;
|
xdffp->xdff_f.setget.old = dpb->dpb_xrootclst;
|
||||||
}
|
}
|
||||||
if (value != 0xFFFFFFFF)
|
if (value != 0xFFFFFFFFUL)
|
||||||
{
|
{
|
||||||
bpb FAR *bpbp;
|
bpb FAR *bpbp;
|
||||||
struct buffer FAR *bp = getblock(1, dpb->dpb_unit);
|
struct buffer FAR *bp = getblock(1, dpb->dpb_unit);
|
||||||
|
@ -27,7 +27,7 @@ OBJS=$(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6) $(OBJS7)
|
|||||||
|
|
||||||
# *Explicit Rules*
|
# *Explicit Rules*
|
||||||
|
|
||||||
production: ../bin/$(TARGET).sys ..\bin\country.sys
|
production: ../bin/$(TARGET).sys ../bin/country.sys
|
||||||
|
|
||||||
../bin/$(TARGET).sys: kernel.sys
|
../bin/$(TARGET).sys: kernel.sys
|
||||||
$(CP) kernel.sys ..$(DIRSEP)bin
|
$(CP) kernel.sys ..$(DIRSEP)bin
|
||||||
@ -42,7 +42,7 @@ kernel.sys: kernel.exe ../utils/exeflat.exe
|
|||||||
kernel.exe: $(TARGET).lnk $(OBJS) $(LIBS)
|
kernel.exe: $(TARGET).lnk $(OBJS) $(LIBS)
|
||||||
$(LINK) @$(TARGET).lnk;
|
$(LINK) @$(TARGET).lnk;
|
||||||
|
|
||||||
..\bin\country.sys: country.asm
|
../bin/country.sys: country.asm
|
||||||
$(NASM) -o $*.sys country.asm
|
$(NASM) -o $*.sys country.asm
|
||||||
|
|
||||||
clobber: clean
|
clobber: clean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user