ia64/xen-unstable

changeset 8964:8946b6dcd49e

Fix x86_64 Xen build.

event_callback_cs and failsafe_callback_cs are x86_32 only.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
author Ian.Campbell@xensource.com
date Wed Feb 22 17:26:39 2006 +0000 (2006-02-22)
parents ed274ca1fbb7
children 8fb4392c1d87
files xen/arch/x86/domain.c
line diff
     1.1 --- a/xen/arch/x86/domain.c	Wed Feb 22 15:50:28 2006 +0000
     1.2 +++ b/xen/arch/x86/domain.c	Wed Feb 22 17:26:39 2006 +0000
     1.3 @@ -357,10 +357,14 @@ int arch_set_info_guest(
     1.4      if ( !(c->flags & VGCF_HVM_GUEST) )
     1.5      {
     1.6          if ( ((c->user_regs.ss & 3) == 0) ||
     1.7 -             !VALID_CODESEL(c->user_regs.cs) ||
     1.8 -             !VALID_CODESEL(c->event_callback_cs) ||
     1.9 +             !VALID_CODESEL(c->user_regs.cs) )
    1.10 +            return -EINVAL;
    1.11 +
    1.12 +#ifdef __i386__
    1.13 +        if ( !VALID_CODESEL(c->event_callback_cs) ||
    1.14               !VALID_CODESEL(c->failsafe_callback_cs) )
    1.15              return -EINVAL;
    1.16 +#endif
    1.17  
    1.18          for ( i = 0; i < 256; i++ )
    1.19              if ( !VALID_CODESEL(c->trap_ctxt[i].cs) )