From bd786593f822307a2267da078af85abd1bcc35af Mon Sep 17 00:00:00 2001 From: sshwarts Date: Mon, 13 Oct 2008 09:47:55 +0000 Subject: This one is easy :) --- bios/rombios32.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'bios') diff --git a/bios/rombios32.c b/bios/rombios32.c index 3374b3c4..13300911 100644 --- a/bios/rombios32.c +++ b/bios/rombios32.c @@ -395,29 +395,7 @@ unsigned long bios_table_end_addr; void uuid_probe(void) { -#ifdef BX_QEMU - uint32_t eax, ebx, ecx, edx; - - // check if backdoor port exists - asm volatile ("outl %%eax, %%dx" - : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) - : "a" (0x564d5868), "b" (0), "c" (0xa), "d" (0x5658)); - if (ebx == 0x564d5868) { - uint32_t *uuid_ptr = (uint32_t *)bios_uuid; - // get uuid - asm volatile ("outl %%eax, %%dx" - : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) - : "a" (0x564d5868), "c" (0x13), "d" (0x5658)); - uuid_ptr[0] = eax; - uuid_ptr[1] = ebx; - uuid_ptr[2] = ecx; - uuid_ptr[3] = edx; - } else -#endif - { - // UUID not set - memset(bios_uuid, 0, 16); - } + memset(bios_uuid, 0, 16); } void cpu_probe(void) -- cgit v1.2.3