WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

RE: [Xen-ia64-devel] [PATCH] Add vga font init for qemu/ia64

To: "Magenheimer, Dan \(HP Labs Fort Collins\)" <dan.magenheimer@xxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-ia64-devel] [PATCH] Add vga font init for qemu/ia64
From: "Yu, Ke" <ke.yu@xxxxxxxxx>
Date: Wed, 30 Nov 2005 08:46:47 +0800
Delivery-date: Wed, 30 Nov 2005 00:46:29 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcX0y8/2lfqxvtEnQPmMLAnJ/UjNnQAZtKewAAUmYCA=
Thread-topic: [Xen-ia64-devel] [PATCH] Add vga font init for qemu/ia64
 Thanks for your comments. I will revise it and send to xen-devel. 

Magenheimer, Dan (HP Labs Fort Collins) wrote:
> Hi Ke --
> 
> This is a fix for ia64 but the file is generic so the patch
> should be submitted to xen-devel.
> 
> It would probably be better to use a more general ifdef
> (for example, #ifdef ARCH_NEED_VGA_FONT_INIT) in case
> other arch's need this in the future.  Perhaps a
> test for ia64 can be put in tools/ioemu/configure to
> properly define this.
> 
> Thanks,
> Dan
> 
>> -----Original Message-----
>> From: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
>> [mailto:xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf
>> Of Yu, Ke
>> Sent: Tuesday, November 29, 2005 3:01 AM
>> To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
>> Subject: [Xen-ia64-devel] [PATCH] Add vga font init for qemu/ia64
>> 
>> Signed-off-by Yu Ke <ke.yu@xxxxxxxxx>
>> Signed-off-by Tian Kevin <kevin.tian@xxxxxxxxx>
>> 
>> # HG changeset patch
>> # User Yu Ke <ke.yu@xxxxxxxxx>
>> # Node ID 56a0ba1c8ba6024fe36cf25e29b1cc1dac74d9af
>> # Parent  0ee00faf332d4f9eb828ab1ca7b846787d77b2ca
>> This patch add font initialization for qemu/ia64.
>> Qemu need font data in vga ram to draw text. In x86, vga bios will
>> initialize the font data. However, in ia64, there is no vga
>> bios , thus
>> no font data . This patch adds the lacking logic for ia64.
>> 
>> diff -r 0ee00faf332d -r 56a0ba1c8ba6 tools/ioemu/hw/vga.c
>> --- a/tools/ioemu/hw/vga.c   Wed Nov 23 21:23:28 2005
>> +++ b/tools/ioemu/hw/vga.c   Tue Nov 29 09:38:42 2005 @@ -1718,6
>>      +1718,19 @@ cpu_register_physical_memory(addr, s->vram_size,
>> s->vram_offset);  } 
>> 
>> +#ifdef __ia64__
>> +#include "vgafont.h"
>> +static void vga_font_init(VGAState* s)
>> +{
>> +    int i,j;
>> +    for (i=0; i<256; i++){
>> +        for (j=0; j<16; j++){
>> +            s->vram_ptr[(i*32+j)*4+2] = vgafont16[i*16+j]; +       
>> } +    }
>> +}
>> +#endif // __ia64__
>> +
>>  /* do the same job as vgabios before vgabios get ready */
>>  void vga_bios_init(VGAState *s)
>>  {
>> @@ -1844,6 +1857,10 @@
>>          fclose(qemuf);
>>      }
>> 
>> +#ifdef __ia64__
>> +    vga_font_init(s);
>> +#endif
>> +
>>  }
>> 
>>  void vga_common_init(VGAState *s, DisplayState *ds, uint8_t
>> *vga_ram_base,


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>