mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-21 04:44:29 +02:00
in 2F.4A02 advance firstAvailableBuf past the alignment as well (neater)
This commit is contained in:
parent
85be764a50
commit
192cccc68f
@ -1953,12 +1953,13 @@ VOID ASMCFUNC int2F_12_handler(struct int2f12regs FAR *pr)
|
|||||||
size = 0;
|
size = 0;
|
||||||
offs = 0xffff; /* requested more than we have */
|
offs = 0xffff; /* requested more than we have */
|
||||||
} else {
|
} else {
|
||||||
|
UWORD alignment = offs - realoffs;
|
||||||
size = (UWORD)requestedsize; /* return rounded size */
|
size = (UWORD)requestedsize; /* return rounded size */
|
||||||
AllocateHMASpace(realoffs, offs + size - 1); /* ! realoffs */
|
AllocateHMASpace(realoffs, offs + size - 1); /* ! realoffs */
|
||||||
if ( ((UDWORD)offs + (UDWORD)size) == 0x10000UL ) {
|
if ( ((UDWORD)offs + (UDWORD)size) == 0x10000UL ) {
|
||||||
firstAvailableBuf = MK_FP(0xFFFF, 0xFFFF); /* exhausted */
|
firstAvailableBuf = MK_FP(0xFFFF, 0xFFFF); /* exhausted */
|
||||||
} else {
|
} else {
|
||||||
firstAvailableBuf += size; /* advance free pointer */
|
firstAvailableBuf += size + alignment; /* advance free pointer */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user