search for: vram_ptr

Displaying 5 results from an estimated 5 matches for "vram_ptr".

Did you mean: from_ptr
2006 Mar 16
0
[PATCH 3a/3] Add shadow VRAM
...k = 1; static uint32_t vga_ioport_read(void *opaque, uint32_t addr) { @@ -1340,6 +1346,80 @@ void vga_invalidate_scanlines(VGAState * } } +extern inline int cmp_vram(VGAState *s, int offset, int n) +{ + long *vp, *sp; + + if (s->vram_shadow == NULL) + return 1; + vp = (long *)(s->vram_ptr + offset); + sp = (long *)(s->vram_shadow + offset); + while ((n -= sizeof(*vp)) >= 0) + if (*vp++ != *sp++) { + memcpy(sp - 1, vp - 1, n + sizeof(*vp)); + return 1; + } + return 0; +} + +static inline unsigned int cpuid_edx(unsigned int op) +{ + unsigned int eax, edx; + + __asm__(&quot...
2007 Dec 10
10
[PATCH] ioemu/qemu vga: save and restore vram buffer
The existing stdvga driver from xen-unstable tools/ioemu/hw/vga* does not save the emulated VGA memory contents. The symptoms include video malfunction after restore, including black screen (which can often be fixed by asking the guest to redraw) but also missing font setup etc. The attached patch fixes this by saving the entire VGA memory buffer, just like the Xen ioemu Cirrus emulator does. I
2005 May 27
0
[PATCH] ioemu: enable Cirrus VGA emulation
...2005-05-19 23:15:49.000000000 -0400 +++ xeno-unstable.mine/tools/ioemu/hw/vga.c 2005-05-27 15:34:51.000000000 -0400 @@ -1877,7 +1877,7 @@ /* qemu''s vga mem is not detached from phys_ram_base and can cause DM abort * when guest write vga mem, so allocate a new one */ - s->vram_ptr = qemu_mallocz(256 * 1024); + s->vram_ptr = qemu_mallocz(vga_ram_size); s->vram_offset = vga_ram_offset; s->vram_size = vga_ram_size; Only in xeno-unstable.mine/tools/ioemu/hw: vga.c.orig diff -ru xeno-unstable.orig/tools/ioemu/target-i386-dm/Makefile xeno-unstable.mine/tool...
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...f (s->ds->dpy_copy) { - cirrus_do_copy(s, s->cirrus_blt_dstaddr - s->start_addr, - s->cirrus_blt_srcaddr - s->start_addr, - s->cirrus_blt_width, s->cirrus_blt_height); - } else { - - if (BLTUNSAFE(s)) - return 0; - - (*s->cirrus_rop) (s, s->vram_ptr + - (s->cirrus_blt_dstaddr & s->cirrus_addr_mask), - s->vram_ptr + - (s->cirrus_blt_srcaddr & s->cirrus_addr_mask), - s->cirrus_blt_dstpitch, s->cirrus_blt_srcpitch, - s->cirrus_blt_width, s->cirrus_blt_height); - - cirrus...
2011 Jul 21
51
Linux Stubdom Problem
2011/7/19 Stefano Stabellini <stefano.stabellini@eu.citrix.com>: > CC''ing Tim and xen-devel > > On Mon, 18 Jul 2011, Jiageng Yu wrote: >> 2011/7/16 Stefano Stabellini <stefano.stabellini@eu.citrix.com>: >> > On Fri, 15 Jul 2011, Jiageng Yu wrote: >> >> 2011/7/15 Jiageng Yu <yujiageng734@gmail.com>: >> >> > 2011/7/15