ia64/xen-unstable

changeset 9995:d4fa337df873

[IA64] NR_hypercalls definition on IA64

This is a patch for NR_hypercalls definition.
It effects (on IA64)
1)xenperf work
2)make perfc=y compile succeed.

At this moment, xenperf@IA64 can monitor 3 counters.
sched: timer
sched: runs through scheduler
sched: context switches

This code is just moved from
xen/include/asm-x86/config.h

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
author awilliam@xenbuild.aw
date Thu May 11 13:13:37 2006 -0600 (2006-05-11)
parents 08bc4e5ac625
children 8802e603a0f1
files xen/include/asm-ia64/config.h
line diff
     1.1 --- a/xen/include/asm-ia64/config.h	Thu May 11 13:06:23 2006 -0600
     1.2 +++ b/xen/include/asm-ia64/config.h	Thu May 11 13:13:37 2006 -0600
     1.3 @@ -97,6 +97,13 @@ extern char _end[]; /* standard ELF symb
     1.4  //#define HZ 1000
     1.5  // FIXME SMP: leave SMP for a later time
     1.6  
     1.7 +/* A power-of-two value greater than or equal to number of hypercalls. */
     1.8 +#define NR_hypercalls 64
     1.9 +
    1.10 +#if NR_hypercalls & (NR_hypercalls - 1)
    1.11 +#error "NR_hypercalls must be a power-of-two value"
    1.12 +#endif
    1.13 +
    1.14  ///////////////////////////////////////////////////////////////
    1.15  // xen/include/asm/config.h
    1.16  // Natural boundary upon TR size to define xenheap space