We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85be764 commit 192ccccCopy full SHA for 192cccc
kernel/inthndlr.c
@@ -1953,12 +1953,13 @@ VOID ASMCFUNC int2F_12_handler(struct int2f12regs FAR *pr)
1953
size = 0;
1954
offs = 0xffff; /* requested more than we have */
1955
} else {
1956
+ UWORD alignment = offs - realoffs;
1957
size = (UWORD)requestedsize; /* return rounded size */
1958
AllocateHMASpace(realoffs, offs + size - 1); /* ! realoffs */
1959
if ( ((UDWORD)offs + (UDWORD)size) == 0x10000UL ) {
1960
firstAvailableBuf = MK_FP(0xFFFF, 0xFFFF); /* exhausted */
1961
- firstAvailableBuf += size; /* advance free pointer */
1962
+ firstAvailableBuf += size + alignment; /* advance free pointer */
1963
}
1964
1965
0 commit comments