From: Gleb Natapov <g...@redhat.com> All descriptor related code will go there.
Signed-off-by: Gleb Natapov <g...@redhat.com> Signed-off-by: Avi Kivity <a...@redhat.com> diff --git a/config-x86-common.mak b/config-x86-common.mak index 4d50e51..323da2e 100644 --- a/config-x86-common.mak +++ b/config-x86-common.mak @@ -11,7 +11,7 @@ cflatobjs += \ cflatobjs += lib/x86/fwcfg.o cflatobjs += lib/x86/apic.o cflatobjs += lib/x86/atomic.o -cflatobjs += lib/x86/idt.o +cflatobjs += lib/x86/desc.o $(libcflat): LDFLAGS += -nostdlib $(libcflat): CFLAGS += -ffreestanding -I lib diff --git a/lib/x86/idt.c b/lib/x86/desc.c similarity index 99% rename from lib/x86/idt.c rename to lib/x86/desc.c index b3e47d4..25a25bc 100644 --- a/lib/x86/idt.c +++ b/lib/x86/desc.c @@ -1,5 +1,5 @@ -#include "idt.h" #include "libcflat.h" +#include "desc.h" #include "processor.h" typedef struct { diff --git a/lib/x86/idt.h b/lib/x86/desc.h similarity index 100% rename from lib/x86/idt.h rename to lib/x86/desc.h diff --git a/x86/access.c b/x86/access.c index 1c638a7..c643f5c 100644 --- a/x86/access.c +++ b/x86/access.c @@ -1,6 +1,6 @@ #include "libcflat.h" -#include "idt.h" +#include "desc.h" #include "processor.h" #define smp_id() 0 diff --git a/x86/apic.c b/x86/apic.c index bcb9fc1..4f05b02 100644 --- a/x86/apic.c +++ b/x86/apic.c @@ -2,7 +2,7 @@ #include "apic.h" #include "vm.h" #include "smp.h" -#include "idt.h" +#include "desc.h" typedef struct { ulong regs[sizeof(ulong)*2]; diff --git a/x86/emulator.c b/x86/emulator.c index 845e7a0..0486d38 100644 --- a/x86/emulator.c +++ b/x86/emulator.c @@ -1,7 +1,7 @@ #include "ioram.h" #include "vm.h" #include "libcflat.h" -#include "idt.h" +#include "desc.h" #define memset __builtin_memset #define TESTDEV_IO_PORT 0xe0 diff --git a/x86/idt_test.c b/x86/idt_test.c index 59256d4..2d2e0c2 100644 --- a/x86/idt_test.c +++ b/x86/idt_test.c @@ -1,5 +1,5 @@ #include "libcflat.h" -#include "idt.h" +#include "desc.h" int test_ud2(void) { diff --git a/x86/xsave.c b/x86/xsave.c index a22b44c..057b0ff 100644 --- a/x86/xsave.c +++ b/x86/xsave.c @@ -1,5 +1,5 @@ #include "libcflat.h" -#include "idt.h" +#include "desc.h" #ifdef __x86_64__ #define uint64_t unsigned long -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html