0
我正在瀏覽通過它標識MP結構的XV-6代碼。它首先搜索EBDA的第一個kb。代碼它是這樣的MP浮點結構
static struct mp*
mpsearch(void)
{
uchar *bda;
uint p;
struct mp *mp;
bda = (uchar *) P2V(0x400);
if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){
if((mp = mpsearch1(p, 1024)))
return mp;
} else {
p = ((bda[0x14]<<8)|bda[0x13])*1024;
if((mp = mpsearch1(p-1024, 1024)))
return mp;
}
return mpsearch1(0xF0000, 0x10000);
}
我不明白這條線if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4))
做什麼。
你能多解釋一下嗎? – ashish