ia64/xen-unstable

changeset 16993:b280ee89dcdc

hvmloader: Remove dead function check_amd().
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Feb 06 18:31:02 2008 +0000 (2008-02-06)
parents 9d0e86d8c1d1
children c9844192c965
files tools/firmware/hvmloader/hvmloader.c
line diff
     1.1 --- a/tools/firmware/hvmloader/hvmloader.c	Wed Feb 06 12:07:55 2008 +0000
     1.2 +++ b/tools/firmware/hvmloader/hvmloader.c	Wed Feb 06 18:31:02 2008 +0000
     1.3 @@ -107,20 +107,6 @@ cirrus_check(void)
     1.4      return inb(0x3C5) == 0x12;
     1.5  }
     1.6  
     1.7 -static int
     1.8 -check_amd(void)
     1.9 -{
    1.10 -    char id[12];
    1.11 -
    1.12 -    __asm__ __volatile__ (
    1.13 -        "cpuid" 
    1.14 -        : "=b" (*(int *)(&id[0])),
    1.15 -        "=c" (*(int *)(&id[8])),
    1.16 -        "=d" (*(int *)(&id[4]))
    1.17 -        : "a" (0) );
    1.18 -    return __builtin_memcmp(id, "AuthenticAMD", 12) == 0;
    1.19 -}
    1.20 -
    1.21  static void
    1.22  wrmsr(uint32_t idx, uint64_t v)
    1.23  {