chain.c: we can't rely on dosmem and int13 in here...
authorH. Peter Anvin <hpa@zytor.com>
Thu, 19 Jun 2008 17:36:07 +0000 (10:36 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 19 Jun 2008 17:36:07 +0000 (10:36 -0700)
commita350eabac495ab9f8bb7da94e2d784ccba2b3bc5
treedcf0f356682ba5cba0458604b0b1ee1242cb9f9d
parent0e5138b77e40bdc214c470d4b35245445f9002f2
chain.c: we can't rely on dosmem and int13 in here...

dosmem and int13 can change during boot loader shutdown.  It
is therefore unsafe to rely on them retaining their value from
running in chain.c32 itself.  Instead, we have to install a
suitable stub which makes that particular determination at
runtime.  Fortunately that is not all that hard to do.
com32/modules/chain.c