diff options
author | kmacy <kmacy@FreeBSD.org> | 2008-08-17 23:32:34 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2008-08-17 23:32:34 +0000 |
commit | c6bda835fdbd7205196002b4dcddbb459dc528ab (patch) | |
tree | 441538d839699000b07da16a355b6dd55383d92d /sys/xen | |
parent | 1021d43b569bfc8d2c5544bde2f540fa432b011f (diff) | |
download | FreeBSD-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.c | 2 |
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); |