debuggers.hg

diff xen/include/asm-x86/desc.h @ 3635:ed902e5c4b49

bitkeeper revision 1.1159.212.62 (41fff40aESe4aWS82z_rLHeonXpxuQ)

More x86/64 stuff.
Signed-off-by: keir.fraser@cl.cam.ac.uk
author kaf24@scramble.cl.cam.ac.uk
date Tue Feb 01 21:26:34 2005 +0000 (2005-02-01)
parents ddf5b350364f
children 9a9c5a491401 e6af5d8f8b39 fd1dd0663b09
line diff
     1.1 --- a/xen/include/asm-x86/desc.h	Tue Feb 01 09:24:57 2005 +0000
     1.2 +++ b/xen/include/asm-x86/desc.h	Tue Feb 01 21:26:34 2005 +0000
     1.3 @@ -40,15 +40,24 @@
     1.4  
     1.5  #ifndef __ASSEMBLY__
     1.6  struct desc_struct {
     1.7 -	unsigned long a,b;
     1.8 +    u32 a, b;
     1.9  };
    1.10  
    1.11 +#if defined(__x86_64__)
    1.12 +typedef struct {
    1.13 +    u64 a, b;
    1.14 +} idt_entry_t;
    1.15 +#elif defined(__i386__)
    1.16 +typedef struct desc_struct idt_entry_t;
    1.17 +#endif
    1.18 +
    1.19  extern struct desc_struct gdt_table[];
    1.20 -extern struct desc_struct *idt, *gdt;
    1.21 +extern struct desc_struct *gdt;
    1.22 +extern idt_entry_t        *idt;
    1.23  
    1.24  struct Xgt_desc_struct {
    1.25 -	unsigned short size;
    1.26 -	unsigned long address __attribute__((packed));
    1.27 +    unsigned short size;
    1.28 +    unsigned long address __attribute__((packed));
    1.29  };
    1.30  
    1.31  #define idt_descr (*(struct Xgt_desc_struct *)((char *)&idt - 2))