aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/event.h
diff options
context:
space:
mode:
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>2004-11-09 11:35:28 +0000
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>2004-11-09 11:35:28 +0000
commiteca331dcd43b940459dd28643063df5e41cd391d (patch)
tree3bf59fb4ff14bf87e80fadc0ec86c8c7bf357dff /xen/include/xen/event.h
parent503933388439f0a9ecfb55d6704dcbe9f44163f5 (diff)
downloadxen-eca331dcd43b940459dd28643063df5e41cd391d.tar.gz
xen-eca331dcd43b940459dd28643063df5e41cd391d.tar.bz2
xen-eca331dcd43b940459dd28643063df5e41cd391d.zip
bitkeeper revision 1.1159.1.395 (4190ab80qQIIPeM49q40ES01DxL7Ng)
Move shared_info pointer from exec_domain to domain and add vcpu_info pointer in exec_domain.
Diffstat (limited to 'xen/include/xen/event.h')
-rw-r--r--xen/include/xen/event.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/include/xen/event.h b/xen/include/xen/event.h
index 86af2954a7..517b22ed4d 100644
--- a/xen/include/xen/event.h
+++ b/xen/include/xen/event.h
@@ -23,7 +23,7 @@
static inline void evtchn_set_pending(struct domain *d, int port)
{
struct exec_domain *ed = d->exec_domain[0];
- shared_info_t *s = ed->shared_info;
+ shared_info_t *s = d->shared_info;
int running;
/* These three operations must happen in strict order. */
@@ -32,7 +32,7 @@ static inline void evtchn_set_pending(struct domain *d, int port)
!test_and_set_bit(port>>5, &s->evtchn_pending_sel) )
{
/* The VCPU pending flag must be set /after/ update to evtchn-pend. */
- set_bit(0, &s->vcpu_data[0].evtchn_upcall_pending);
+ set_bit(0, &ed->vcpu_info->evtchn_upcall_pending);
/*
* NB1. 'flags' and 'processor' must be checked /after/ update of
@@ -72,7 +72,7 @@ static inline void send_guest_pirq(struct domain *d, int pirq)
}
#define event_pending(_d) \
- ((_d)->shared_info->vcpu_data[0].evtchn_upcall_pending && \
- !(_d)->shared_info->vcpu_data[0].evtchn_upcall_mask)
+ ((_d)->vcpu_info->evtchn_upcall_pending && \
+ !(_d)->vcpu_info->evtchn_upcall_mask)
#endif /* __XEN_EVENT_H__ */