diff options
author | 2006-04-27 15:28:21 +0000 | |
---|---|---|
committer | 2006-04-27 15:28:21 +0000 | |
commit | 53b8c159301cc4803751ce09e7618851d4ce01db (patch) | |
tree | ed97eb5816450d4c83a625bcb2ee7a984a21b2a4 | |
parent | from PAE work: (diff) | |
download | wireguard-openbsd-53b8c159301cc4803751ce09e7618851d4ce01db.tar.xz wireguard-openbsd-53b8c159301cc4803751ce09e7618851d4ce01db.zip |
from PAE work:
since we are only interested in the page offset bits
cast paddr_t to (smaller) u_long to shuddup gcc (;
-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 { |