diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-06-22 07:07:55 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-06-22 07:07:55 -0500 |
commit | 7ee28fd303003d70bb4c142e6ad4b92b7383b5b4 (patch) | |
tree | 03781532cc1e7b53d5ce4ffd3a49d515dcdf21c3 /xen-mapcache.h | |
parent | bcd2491a48787542160d75fb7468907971b04478 (diff) | |
parent | 01195b7347e341a49fa554959882b26c666a3616 (diff) |
Merge remote-tracking branch 'agraf/xen-next' into staging
Diffstat (limited to 'xen-mapcache.h')
-rw-r--r-- | xen-mapcache.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/xen-mapcache.h b/xen-mapcache.h index 339444c94e..6216cc3be7 100644 --- a/xen-mapcache.h +++ b/xen-mapcache.h @@ -9,28 +9,12 @@ #ifndef XEN_MAPCACHE_H #define XEN_MAPCACHE_H -#include <sys/mman.h> -#include "trace.h" - void qemu_map_cache_init(void); uint8_t *qemu_map_cache(target_phys_addr_t phys_addr, target_phys_addr_t size, uint8_t lock); -void qemu_map_cache_unlock(void *phys_addr); ram_addr_t qemu_ram_addr_from_mapcache(void *ptr); void qemu_invalidate_entry(uint8_t *buffer); void qemu_invalidate_map_cache(void); -uint8_t *xen_map_block(target_phys_addr_t phys_addr, target_phys_addr_t size); - -static inline void xen_unmap_block(void *addr, ram_addr_t size) -{ - trace_xen_unmap_block(addr, size); - - if (munmap(addr, size) != 0) { - hw_error("xen_unmap_block: %s", strerror(errno)); - } -} - - #define mapcache_lock() ((void)0) #define mapcache_unlock() ((void)0) |