summaryrefslogtreecommitdiff
path: root/bios
diff options
context:
space:
mode:
authorsshwarts <sshwarts>2008-10-13 09:47:55 +0000
committersshwarts <sshwarts>2008-10-13 09:47:55 +0000
commitbd786593f822307a2267da078af85abd1bcc35af (patch)
treebf633c29ccf5b4379559fc8511075bdd62be451d /bios
parent75840dc7223382b42de36a51988d589243d5e2cc (diff)
This one is easy :)
Diffstat (limited to 'bios')
-rw-r--r--bios/rombios32.c24
1 files changed, 1 insertions, 23 deletions
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)