mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-21 04:44:29 +02:00
fixes #148
This commit is contained in:
parent
1b6de0fda6
commit
1ce349ef26
@ -352,9 +352,6 @@ void PreConfig(void)
|
|||||||
/* printf("Preliminary %d buffers allocated at 0x%p\n", Config.cfgBuffers, buffers);*/
|
/* printf("Preliminary %d buffers allocated at 0x%p\n", Config.cfgBuffers, buffers);*/
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
LoL->DPBp =
|
|
||||||
DynAlloc("DPBp", blk_dev.dh_name[0], sizeof(struct dpb));
|
|
||||||
|
|
||||||
LoL->sfthead = MK_FP(FP_SEG(LoL), 0xcc); /* &(LoL->firstsftt) */
|
LoL->sfthead = MK_FP(FP_SEG(LoL), 0xcc); /* &(LoL->firstsftt) */
|
||||||
/* LoL->FCBp = (sfttbl FAR *)&FcbSft; */
|
/* LoL->FCBp = (sfttbl FAR *)&FcbSft; */
|
||||||
/* LoL->FCBp = (sfttbl FAR *)
|
/* LoL->FCBp = (sfttbl FAR *)
|
||||||
|
@ -547,7 +547,12 @@ STATIC VOID update_dcb(struct dhdr FAR * dhp)
|
|||||||
if (nunits == 0) return;
|
if (nunits == 0) return;
|
||||||
|
|
||||||
/* allocate memory for new device control blocks, insert into chain [at end], and update our pointer to new end */
|
/* allocate memory for new device control blocks, insert into chain [at end], and update our pointer to new end */
|
||||||
dpb = (struct dpb FAR *)KernelAlloc(nunits * sizeof(struct dpb), 'E', Config.cfgDosDataUmb);
|
if ( LoL->first_mcb ) {
|
||||||
|
dpb = (struct dpb FAR *)KernelAlloc(nunits * sizeof(struct dpb), 'E', Config.cfgDosDataUmb);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
dpb = DynAlloc("DPBp", blk_dev.dh_name[0], sizeof(struct dpb));
|
||||||
|
}
|
||||||
|
|
||||||
/* find end of dpb chain or initialize root if needed */
|
/* find end of dpb chain or initialize root if needed */
|
||||||
if (LoL->nblkdev == 0)
|
if (LoL->nblkdev == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user