summaryrefslogtreecommitdiffstats
path: root/sys/xen
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-08-17 23:32:34 +0000
committerkmacy <kmacy@FreeBSD.org>2008-08-17 23:32:34 +0000
commitc6bda835fdbd7205196002b4dcddbb459dc528ab (patch)
tree441538d839699000b07da16a355b6dd55383d92d /sys/xen
parent1021d43b569bfc8d2c5544bde2f540fa432b011f (diff)
downloadFreeBSD-src-c6bda835fdbd7205196002b4dcddbb459dc528ab.zip
FreeBSD-src-c6bda835fdbd7205196002b4dcddbb459dc528ab.tar.gz
Make sure we don't lose the most significant bits of the frame number on PAE or 64-bit
MFC after: 1 month
Diffstat (limited to 'sys/xen')
-rw-r--r--sys/xen/gnttab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/xen/gnttab.c b/sys/xen/gnttab.c
index 11072f1..fd45322 100644
--- a/sys/xen/gnttab.c
+++ b/sys/xen/gnttab.c
@@ -492,7 +492,7 @@ gnttab_map(unsigned int start_idx, unsigned int end_idx)
}
for (i = 0; i < nr_gframes; i++)
PT_SET_MA(((caddr_t)shared) + i*PAGE_SIZE,
- frames[i] << PAGE_SHIFT | PG_RW | PG_V);
+ ((vm_paddr_t)frames[i]) << PAGE_SHIFT | PG_RW | PG_V);
free(frames, M_DEVBUF);
OpenPOWER on IntegriCloud