From: "Jan Beulich" Subject: [PATCH 4/7] x86: eliminate [gi]dt{,_descr} Date: Wed, 23 Aug 2006 11:06:05 +0200 Message-ID: <44EC369D.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartB792126D.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --=__PartB792126D.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline (in preparation for initial PAE-guest-on-64bit patches) These symbols aren't used anywhere. Again results in less changes needed when introducing the compatibility GDT page. Signed-off-by: Jan Beulich --=__PartB792126D.0__= Content-Type: text/plain; name="idt-gdt.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="idt-gdt.patch" Index: 2006-08-16/xen/arch/x86/boot/x86_32.S =================================================================== --- 2006-08-16.orig/xen/arch/x86/boot/x86_32.S 2006-01-10 13:36:44.000000000 +0100 +++ 2006-08-16/xen/arch/x86/boot/x86_32.S 2006-08-22 09:22:34.000000000 +0200 @@ -196,21 +196,16 @@ ENTRY(stack_start) /*** DESCRIPTOR TABLES ***/ -.globl idt -.globl gdt - ALIGN .word 0 idt_descr: .word 256*8-1 -idt: .long idt_table .word 0 gdt_descr: .word LAST_RESERVED_GDT_BYTE -gdt: .long gdt_table - FIRST_RESERVED_GDT_BYTE .word 0 Index: 2006-08-16/xen/arch/x86/boot/x86_64.S =================================================================== --- 2006-08-16.orig/xen/arch/x86/boot/x86_64.S 2006-08-22 09:21:20.000000000 +0200 +++ 2006-08-16/xen/arch/x86/boot/x86_64.S 2006-08-22 09:21:55.000000000 +0200 @@ -192,9 +192,6 @@ ignore_int: /*** DESCRIPTOR TABLES ***/ -.globl idt -.globl gdt - .org 0x300 .code32 @@ -212,13 +209,11 @@ cpuid_ext_features: /* 0x310 */ .word 0 gdt_descr: .word LAST_RESERVED_GDT_BYTE -gdt: .quad gdt_table - FIRST_RESERVED_GDT_BYTE .word 0,0,0 idt_descr: .word 256*16-1 -idt: .quad idt_table ENTRY(stack_start) Index: 2006-08-16/xen/include/asm-x86/desc.h =================================================================== --- 2006-08-16.orig/xen/include/asm-x86/desc.h 2006-02-28 17:35:12.000000000 +0100 +++ 2006-08-16/xen/include/asm-x86/desc.h 2006-08-22 09:21:55.000000000 +0200 @@ -155,17 +155,12 @@ __asm__ __volatile__ ("movw %w3,0(%2)\n\ #endif extern struct desc_struct gdt_table[]; -extern struct desc_struct *gdt; -extern idt_entry_t *idt; struct Xgt_desc_struct { unsigned short size; unsigned long address __attribute__((packed)); }; -#define idt_descr (*(struct Xgt_desc_struct *)((char *)&idt - 2)) -#define gdt_descr (*(struct Xgt_desc_struct *)((char *)&gdt - 2)) - extern void set_intr_gate(unsigned int irq, void * addr); extern void set_system_gate(unsigned int n, void *addr); extern void set_task_gate(unsigned int n, unsigned int sel); --=__PartB792126D.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartB792126D.0__=--