diff options
author | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2021-01-06 01:23:42 +0000 |
---|---|---|
committer | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2021-01-06 01:23:42 +0000 |
commit | 3f768b8134b4473f0c9e0f15bad22fcc8e6a7865 (patch) | |
tree | 77dd26bd97c4e3e2c01f4dfc99b9e2e3ee221448 /sys | |
parent | 928c170c890c688746091f335d0e49533f8f88ef (diff) |
Allocate pages for the F00F bug fix using km_alloc(9) instead of
uvm_km_zalloc(9).
tested on qemu pretending to be a 586
ok bluhm@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/i386/machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index ed6403353fd..8436e4932f2 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.642 2020/12/28 14:02:07 mpi Exp $ */ +/* $OpenBSD: machdep.c,v 1.643 2021/01/06 01:23:41 jmatthew Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -3100,7 +3100,7 @@ fix_f00f(void) void *p; /* Allocate two new pages */ - va = uvm_km_zalloc(kernel_map, NBPG*2); + va = (vaddr_t)km_alloc(NBPG*2, &kv_any, &kp_zero, &kd_waitok); p = (void *)(va + NBPG - 7*sizeof(*idt)); /* Copy over old IDT */ |