From a6c4711a38d3f8f3a4737558a4682ea38fcfaa7a Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 28 Nov 2007 20:17:04 +0000 Subject: [PATCH] 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. --- mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {