aboutsummaryrefslogtreecommitdiff
path: root/sys/xen
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2008-08-17 23:32:34 +0000
committerKip Macy <kmacy@FreeBSD.org>2008-08-17 23:32:34 +0000
commit9ec83e3b8665317d31bf34936f7e75ee593f0163 (patch)
tree441538d839699000b07da16a355b6dd55383d92d /sys/xen
parent603724d3abed34351087e20b8cb363d8e02072c1 (diff)
downloadsrc-9ec83e3b8665317d31bf34936f7e75ee593f0163.tar.gz
src-9ec83e3b8665317d31bf34936f7e75ee593f0163.zip
Make sure we don't lose the most significant bits of the frame number on PAE or 64-bit
MFC after: 1 month
Notes
Notes: svn path=/head/; revision=181804
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 11072f153988..fd45322f28a3 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);