diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-01-18 14:48:18 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-01-18 14:48:18 +0000 |
commit | 6127bd73bde6c4265a2ac403203e24a11c582cc5 (patch) | |
tree | 41c86b70c32b358d42250376f796e2d51eb052c3 /extras/mini-os/lib | |
parent | 41449bf35b76cd55f3ff5f87b8c60b18dc36cc80 (diff) | |
download | xen-6127bd73bde6c4265a2ac403203e24a11c582cc5.tar.gz xen-6127bd73bde6c4265a2ac403203e24a11c582cc5.tar.bz2 xen-6127bd73bde6c4265a2ac403203e24a11c582cc5.zip |
minios: implement xc_map_foreign_bulk
In order to do so it modifies map_frames_ex and do_map_frames to take
an int *err as parameter and return any error that way.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/lib')
-rw-r--r-- | extras/mini-os/lib/sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/mini-os/lib/sys.c b/extras/mini-os/lib/sys.c index 6e12be0f4a..9ce99544f5 100644 --- a/extras/mini-os/lib/sys.c +++ b/extras/mini-os/lib/sys.c @@ -1254,10 +1254,10 @@ void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset return map_zero(n, 1); else if (files[fd].type == FTYPE_XC) { unsigned long zero = 0; - return map_frames_ex(&zero, n, 0, 0, 1, DOMID_SELF, 0, 0); + return map_frames_ex(&zero, n, 0, 0, 1, DOMID_SELF, NULL, 0); } else if (files[fd].type == FTYPE_MEM) { unsigned long first_mfn = offset >> PAGE_SHIFT; - return map_frames_ex(&first_mfn, n, 0, 1, 1, DOMID_IO, 0, _PAGE_PRESENT|_PAGE_RW); + return map_frames_ex(&first_mfn, n, 0, 1, 1, DOMID_IO, NULL, _PAGE_PRESENT|_PAGE_RW); } else ASSERT(0); } |