mirror of
https://github.com/FDOS/kernel.git
synced 2025-04-08 17:15:17 +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;
|
||||
offs = 0xffff; /* requested more than we have */
|
||||
} else {
|
||||
UWORD alignment = offs - realoffs;
|
||||
size = (UWORD)requestedsize; /* return rounded size */
|
||||
AllocateHMASpace(realoffs, offs + size - 1); /* ! realoffs */
|
||||
if ( ((UDWORD)offs + (UDWORD)size) == 0x10000UL ) {
|
||||
firstAvailableBuf = MK_FP(0xFFFF, 0xFFFF); /* exhausted */
|
||||
} else {
|
||||
firstAvailableBuf += size; /* advance free pointer */
|
||||
firstAvailableBuf += size + alignment; /* advance free pointer */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user