mirror of
https://github.com/FDOS/kernel.git
synced 2025-04-08 17:15:17 +02:00
AllocateHMASpace needs to check FP_SEG(firstbuf) for 0xffff, since the
buffers may not live in the HMA. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@872 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
e5f882f2ec
commit
3e1c1a526f
@ -477,8 +477,12 @@ UWORD dskxfer(COUNT dsk, ULONG blkno, VOID FAR * buf, UWORD numblocks,
|
||||
void AllocateHMASpace (size_t lowbuffer, size_t highbuffer)
|
||||
{
|
||||
REG struct buffer FAR *bp = firstbuf;
|
||||
int n = LoL_nbuffers;
|
||||
int n;
|
||||
|
||||
if (FP_SEG(bp) != 0xffff)
|
||||
return;
|
||||
|
||||
n = LoL_nbuffers;
|
||||
do
|
||||
{
|
||||
/* check if buffer intersects with requested area */
|
||||
|
Loading…
x
Reference in New Issue
Block a user