ia64/xen-unstable

changeset 662:4eedf9e718d3

bitkeeper revision 1.377 (3f252380ka2fzGVniRJMLfuL8QIUpg)

hypervisor-if.h:
Fix a macro.
author kaf24@scramble.cl.cam.ac.uk
date Mon Jul 28 13:22:08 2003 +0000 (2003-07-28)
parents 98b19b3e05eb
children 355a3d7a2a84
files xen/include/hypervisor-ifs/hypervisor-if.h
line diff
     1.1 --- a/xen/include/hypervisor-ifs/hypervisor-if.h	Mon Jul 28 13:17:58 2003 +0000
     1.2 +++ b/xen/include/hypervisor-ifs/hypervisor-if.h	Mon Jul 28 13:22:08 2003 +0000
     1.3 @@ -149,7 +149,7 @@
     1.4  #define TI_GET_DPL(_ti)      ((_ti)->flags & 3)
     1.5  #define TI_GET_IF(_ti)       ((_ti)->flags & 4)
     1.6  #define TI_SET_DPL(_ti,_dpl) ((_ti)->flags |= (_dpl))
     1.7 -#define TI_SET_IF(_ti,_if)   ((_ti)->flags |= (_if))
     1.8 +#define TI_SET_IF(_ti,_if)   ((_ti)->flags |= ((!!(_if))<<2))
     1.9  typedef struct trap_info_st
    1.10  {
    1.11      unsigned char  vector;  /* exception vector                              */