From 7162c0add826640ce4f606f367a78f63817f383b Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Mon, 25 Sep 2000 16:33:06 +0000 Subject: once again bios does not return a correct segment limits for the pcibios segments. we work this around as we used to do in apm (; round segment size to the next 64k boundary. --- sys/arch/i386/i386/bios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/i386/i386/bios.c b/sys/arch/i386/i386/bios.c index 35f08d14c74..1d47e8847c0 100644 --- a/sys/arch/i386/i386/bios.c +++ b/sys/arch/i386/i386/bios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bios.c,v 1.33 2000/09/22 02:00:21 mickey Exp $ */ +/* $OpenBSD: bios.c,v 1.34 2000/09/25 16:33:05 mickey Exp $ */ /* * Copyright (c) 1997-2000 Michael Shalayeff @@ -332,7 +332,7 @@ bios32_service(service, e, ei) slot = gdt_get_slot(); setsegment(&dynamic_gdt[slot].sd, ISA_HOLE_VADDR(base), - count - 1, SDT_MEMERA, SEL_KPL, 1, 0); + ((base + 0x10000) & ~0xffff) - 1, SDT_MEMERA, SEL_KPL, 1, 0); e->segment = GSEL(slot, SEL_KPL); e->offset = (vaddr_t)(ent - base); -- cgit v1.2.3