memdisk: don't write the EDD DPT unless we are in EDD mode...
authorH. Peter Anvin <hpa@zytor.com>
Fri, 31 Jul 2009 15:24:27 +0000 (08:24 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 31 Jul 2009 15:24:27 +0000 (08:24 -0700)
commita243241a43b48a7cf0fbe47e54851bd8f2c2023e
treec1560e0b165aabb7d58b2e434a57663c3d567a19
parent8b9b22fee5e3febcddf7439e0b4369615fc9ecd7
memdisk: don't write the EDD DPT unless we are in EDD mode...

Don't write the EDD DPT unless we're actually in EDD mode!  Otherwise
we end up corrupting memory beyond the defined code.  This was the
reason 5ca2764460883f5e9a5bd83db00f242ea1272e33 worked, by moving
variables out of the corruption zone.

Debugged-by: Shao Miller <Shao.Miller@yrdsb.edu.on.ca>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
memdisk/setup.c