diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-04-27 15:28:22 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-04-27 15:28:22 +0000 |
commit | 11dad837ff643b7f59fbcfae411104a49ab48410 (patch) | |
tree | a75e515a1e69bf556ceac410b7678eafd4bee0c6 /sys/dev/ipmi.c | |
parent | 8526f0cd8a1248d694b3380edacfbfee3ed15c44 (diff) |
from PAE work:
since we are only interested in the page offset bits
cast paddr_t to (smaller) u_long to shuddup gcc (;
Diffstat (limited to 'sys/dev/ipmi.c')
-rw-r--r-- | sys/dev/ipmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c index 0d450eb7d10..0159a53e0e4 100644 --- a/sys/dev/ipmi.c +++ b/sys/dev/ipmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipmi.c,v 1.35 2006/04/20 20:31:10 miod Exp $ */ +/* $OpenBSD: ipmi.c,v 1.36 2006/04/27 15:28:21 mickey Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave @@ -855,7 +855,7 @@ smbios_map(paddr_t pa, size_t len, struct smbios_mem_map *handle) handle->pa = pa; handle->baseva = va; - handle->va = (u_int8_t *)(va + (pa & PGOFSET)); + handle->va = (u_int8_t *)(va + ((u_long)pa & PGOFSET)); handle->vsize = pgend - pgstart; do { |