summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-09-25 16:33:06 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-09-25 16:33:06 +0000
commit7162c0add826640ce4f606f367a78f63817f383b (patch)
treebd5cef2d89c73fb8c798184b07a617a7fcbdf961 /sys/arch
parentafa0d7c4b5e3aee1cc2ba27cb8f7cc1ad28c605f (diff)
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.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/bios.c4
1 files changed, 2 insertions, 2 deletions
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);