xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a6c4711a38d3f8f3a4737558a4682ea38fcfaa7a
parent fd6b029401e359ce25cf0c3d8c0f047b2e2a5632
Author: rsc <rsc>
Date:   Wed, 28 Nov 2007 20:17:04 +0000

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.

Diffstat:
Mmp.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 {