[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] hvmloader: Remove dead function check_amd().



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1202322662 0
# Node ID b280ee89dcdcccd85c81c7c678f835de3ea65c33
# Parent  9d0e86d8c1d1360be64921928ae98b3693adfc73
hvmloader: Remove dead function check_amd().
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/firmware/hvmloader/hvmloader.c |   14 --------------
 1 files changed, 14 deletions(-)

diff -r 9d0e86d8c1d1 -r b280ee89dcdc tools/firmware/hvmloader/hvmloader.c
--- a/tools/firmware/hvmloader/hvmloader.c      Wed Feb 06 12:07:55 2008 +0000
+++ b/tools/firmware/hvmloader/hvmloader.c      Wed Feb 06 18:31:02 2008 +0000
@@ -107,20 +107,6 @@ cirrus_check(void)
     return inb(0x3C5) == 0x12;
 }
 
-static int
-check_amd(void)
-{
-    char id[12];
-
-    __asm__ __volatile__ (
-        "cpuid" 
-        : "=b" (*(int *)(&id[0])),
-        "=c" (*(int *)(&id[8])),
-        "=d" (*(int *)(&id[4]))
-        : "a" (0) );
-    return __builtin_memcmp(id, "AuthenticAMD", 12) == 0;
-}
-
 static void
 wrmsr(uint32_t idx, uint64_t v)
 {

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.