# HG changeset patch # User yamahata@xxxxxxxxxxxxx # Node ID 53e6d6445e6bbbe59ed1f1c503a633e84470d497 # Parent d75a6cc5e68abe8541c326afa2a614bf1973c609 work around: hypercall_preempt_check() PATCHNAME: work_around_hypercall_preempt_check_on_ia64 Signed-off-by: Isaku Yamahata diff -r d75a6cc5e68a -r 53e6d6445e6b xen/include/xen/sched.h --- a/xen/include/xen/sched.h Tue Mar 28 08:54:58 2006 -0700 +++ b/xen/include/xen/sched.h Wed Mar 29 22:58:09 2006 +0900 @@ -317,10 +317,18 @@ unsigned long hypercall_create_continuat unsigned long hypercall_create_continuation( unsigned int op, const char *format, ...); +#ifndef __ia64__ #define hypercall_preempt_check() (unlikely( \ softirq_pending(smp_processor_id()) | \ event_pending(current) \ )) +#else +#define hypercall_preempt_check() (unlikely( \ + softirq_pending(smp_processor_id()) | \ + (event_pending(current) && \ + PSCB(current, interrupt_delivery_enabled)) \ + )) +#endif /* This domain_hash and domain_list are protected by the domlist_lock. */ #define DOMAIN_HASH_SIZE 256