summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-10-18 23:26:34 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-10-18 23:26:34 +0000
commit8d9431487e8505c034f1f8f4e46c4aedcbf7648f (patch)
tree832955ca59fe0b33558f7b652a603c17b94208a9 /sys/dev
parentaae0490897d75499eb798b020c20e62d0be36f0c (diff)
Use MI trunc_page() & round_page(). Suggested by miod@ and grange@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ipmi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c
index 209eb11ff5a..8ada92baa49 100644
--- a/sys/dev/ipmi.c
+++ b/sys/dev/ipmi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmi.c,v 1.6 2005/10/18 23:11:00 marco Exp $ */
+/* $OpenBSD: ipmi.c,v 1.7 2005/10/18 23:26:33 marco Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave
@@ -705,8 +705,8 @@ scan_sig(long start, long end, int skip, int len, const void *data)
void *
smbios_map(paddr_t pa, size_t len, struct smbios_mem_map *handle)
{
- paddr_t pgstart = i386_trunc_page(pa);
- paddr_t pgend = i386_trunc_page(pa + len);
+ paddr_t pgstart = trunc_page(pa);
+ paddr_t pgend = round_page(pa + len);
vaddr_t va = uvm_km_valloc(kernel_map, pgend-pgstart);
if (va == 0)