]> xenbits.xensource.com Git - xen.git/commitdiff
x86: Drop mach-default/bios_ebda.h
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Nov 2024 19:35:04 +0000 (19:35 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 11 Nov 2024 15:25:39 +0000 (15:25 +0000)
It has a single function, and a single user.  This is unlikely to change
moving forwards so fold it into mpparse.c.

Update it to use an explicit uint16_t cast, rather than assuming the width of
short.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/include/asm/mach-default/bios_ebda.h [deleted file]
xen/arch/x86/mpparse.c

diff --git a/xen/arch/x86/include/asm/mach-default/bios_ebda.h b/xen/arch/x86/include/asm/mach-default/bios_ebda.h
deleted file mode 100644 (file)
index 42de6b2..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef _MACH_BIOS_EBDA_H
-#define _MACH_BIOS_EBDA_H
-
-/*
- * there is a real-mode segmented pointer pointing to the
- * 4K EBDA area at 0x40E.
- */
-static inline unsigned int get_bios_ebda(void)
-{
-       unsigned int address = *(unsigned short *)maddr_to_virt(0x40E);
-       address <<= 4;
-       return address; /* 0 means none */
-}
-
-#endif /* _MACH_BIOS_EBDA_H */
index b16c105b18bf6a3870951236e50b9158338ae6f3..e74a714f500b7295d6a7104c26804d23bb49179b 100644 (file)
@@ -31,8 +31,6 @@
 #include <asm/io_apic.h>
 #include <asm/setup.h>
 
-#include <bios_ebda.h>
-
 /* Have we found an MP table */
 bool __initdata smp_found_config;
 
@@ -734,6 +732,13 @@ static void __init efi_check_config(void)
                efi_unmap_mpf();
 }
 
+static unsigned int get_bios_ebda(void)
+{
+       unsigned int address = *(uint16_t *)maddr_to_virt(0x40e);
+
+       return address << 4; /* 0 means none */
+}
+
 void __init find_smp_config (void)
 {
        unsigned int address;