From: rsc Date: Wed, 28 Nov 2007 20:17:04 +0000 (+0000) Subject: bda[0xE] is a 16-bit segment number, X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=a6c4711a38d3f8f3a4737558a4682ea38fcfaa7a;p=cs3210-lab1.git bda[0xE] is a 16-bit segment number, not a real address. So shift 4. Reported by Silas. Jim McKie says this code only matters on ancient EISA MP systems. --- diff --git a/mp.c b/mp.c index af9e72b..1015de9 100644 --- a/mp.c +++ b/mp.c @@ -59,7 +59,7 @@ mp_search(void) struct mp *mp; bda = (uchar*)0x400; - if((p = (bda[0x0F]<<8)|bda[0x0E])){ + if((p = ((bda[0x0F]<<8)|bda[0x0E]) << 4)){ if((mp = mp_search1((uchar*)p, 1024))) return mp; } else {