mirror of https://github.com/FDOS/kernel.git
Fix new LBA problem.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@877 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
541b994f99
commit
fed4d61e90
|
@ -583,7 +583,7 @@ void DosDefinePartition(struct DriveParamS *driveParam,
|
||||||
pddt->ddt_next = MK_FP(0, 0xffff);
|
pddt->ddt_next = MK_FP(0, 0xffff);
|
||||||
pddt->ddt_driveno = driveParam->driveno;
|
pddt->ddt_driveno = driveParam->driveno;
|
||||||
pddt->ddt_logdriveno = nUnits;
|
pddt->ddt_logdriveno = nUnits;
|
||||||
pddt->ddt_descflags |= driveParam->descflags;
|
pddt->ddt_descflags = driveParam->descflags;
|
||||||
/* Turn of LBA if not forced and the partition is within 1023 cyls and of the right type */
|
/* Turn of LBA if not forced and the partition is within 1023 cyls and of the right type */
|
||||||
/* the FileSystem type was internally converted to LBA_xxxx if a non-LBA partition
|
/* the FileSystem type was internally converted to LBA_xxxx if a non-LBA partition
|
||||||
above cylinder 1023 was found */
|
above cylinder 1023 was found */
|
||||||
|
@ -614,7 +614,7 @@ void DosDefinePartition(struct DriveParamS *driveParam,
|
||||||
|
|
||||||
pddt->ddt_serialno = 0x12345678l;
|
pddt->ddt_serialno = 0x12345678l;
|
||||||
/* drive inaccessible until bldbpb successful */
|
/* drive inaccessible until bldbpb successful */
|
||||||
pddt->ddt_descflags = init_readdasd(pddt->ddt_driveno) | DF_NOACCESS;
|
pddt->ddt_descflags |= init_readdasd(pddt->ddt_driveno) | DF_NOACCESS;
|
||||||
pddt->ddt_type = 5;
|
pddt->ddt_type = 5;
|
||||||
memcpy(&pddt->ddt_bpb, &pddt->ddt_defbpb, sizeof(bpb));
|
memcpy(&pddt->ddt_bpb, &pddt->ddt_defbpb, sizeof(bpb));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue