提交 a6c4711a 创建 作者: rsc's avatar rsc

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.
上级 fd6b0294
...@@ -59,7 +59,7 @@ mp_search(void) ...@@ -59,7 +59,7 @@ mp_search(void)
struct mp *mp; struct mp *mp;
bda = (uchar*)0x400; 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))) if((mp = mp_search1((uchar*)p, 1024)))
return mp; return mp;
} else { } else {
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论