summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/reboot_32.c
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa2008-01-30 13:31:12 +0100
committerIngo Molnar2008-01-30 13:31:12 +0100
commit6b68f01baa810e9f63fbf39e9d5c3ef1d94a966f (patch)
treedc7f50673d72677d24dbe9ac8217b832f8d5cb02 /arch/x86/kernel/reboot_32.c
parentx86: unify desc_struct (diff)
downloadkernel-qcow2-linux-6b68f01baa810e9f63fbf39e9d5c3ef1d94a966f.tar.gz
kernel-qcow2-linux-6b68f01baa810e9f63fbf39e9d5c3ef1d94a966f.tar.xz
kernel-qcow2-linux-6b68f01baa810e9f63fbf39e9d5c3ef1d94a966f.zip
x86: unify struct desc_ptr
This patch unifies struct desc_ptr between i386 and x86_64. They can be expressed in the exact same way in C code, only having to change the name of one of them. As Xgt_desc_struct is ugly and big, this is the one that goes away. There's also a padding field in i386, but it is not really needed in the C structure definition. Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/reboot_32.c')
-rw-r--r--arch/x86/kernel/reboot_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/reboot_32.c b/arch/x86/kernel/reboot_32.c
index bb1a0f889c5e..c3376fae639d 100644
--- a/arch/x86/kernel/reboot_32.c
+++ b/arch/x86/kernel/reboot_32.c
@@ -161,7 +161,7 @@ real_mode_gdt_entries [3] =
0x000092000100ffffULL /* 16-bit real-mode 64k data at 0x00000100 */
};
-static struct Xgt_desc_struct
+static struct desc_ptr
real_mode_gdt = { sizeof (real_mode_gdt_entries) - 1, (long)real_mode_gdt_entries },
real_mode_idt = { 0x3ff, 0 },
no_idt = { 0, 0 };