diff options
author | Jan Beulich <jbeulich@suse.com> | 2012-11-22 10:47:58 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2012-11-22 10:47:58 +0100 |
commit | d0d4635d034f202bb401a6efa3ba61530f3854ab (patch) | |
tree | 3f2582ada49966c66898d6fdf8568e81098595f7 /xen/drivers/video | |
parent | 7bdfb850aecdf43e2723e0a6c4415d6a81d4d187 (diff) | |
download | xen-d0d4635d034f202bb401a6efa3ba61530f3854ab.tar.gz xen-d0d4635d034f202bb401a6efa3ba61530f3854ab.tar.bz2 xen-d0d4635d034f202bb401a6efa3ba61530f3854ab.zip |
implement vmap()
... and use it as basis for a proper ioremap() on x86.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/drivers/video')
-rw-r--r-- | xen/drivers/video/vesa.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xen/drivers/video/vesa.c b/xen/drivers/video/vesa.c index 47cd3ed99d..d0a83ff270 100644 --- a/xen/drivers/video/vesa.c +++ b/xen/drivers/video/vesa.c @@ -10,6 +10,7 @@ #include <xen/xmalloc.h> #include <xen/kernel.h> #include <xen/vga.h> +#include <asm/io.h> #include <asm/page.h> #include "font.h" @@ -101,13 +102,11 @@ void __init vesa_init(void) if ( !line_len ) goto fail; - if ( map_pages_to_xen(IOREMAP_VIRT_START, - vlfb_info.lfb_base >> PAGE_SHIFT, - vram_remap >> PAGE_SHIFT, - PAGE_HYPERVISOR_NOCACHE) ) + lfb = ioremap(vlfb_info.lfb_base, vram_remap); + if ( !lfb ) goto fail; - lfb = memset((void *)IOREMAP_VIRT_START, 0, vram_remap); + memset(lfb, 0, vram_remap); vga_puts = vesa_redraw_puts; |