ia64/xen-unstable

view xen/include/asm-ia64/mmu_context.h @ 5704:9b73afea874e

Certain types of event channel are now auto-bound to vcpu0 by Xen.
Make sure that xenolinux agrees with this.
author sos22@douglas.cl.cam.ac.uk
date Fri Jul 08 15:35:43 2005 +0000 (2005-07-08)
parents c91f74efda05
children 1ec2225aa8c6 8799d14bef77 9312a3e8a6f8 dfaf788ab18c
line source
1 #ifndef __ASM_MMU_CONTEXT_H
2 #define __ASM_MMU_CONTEXT_H
3 //dummy file to resolve non-arch-indep include
4 #ifdef XEN
5 #ifndef CONFIG_VTI
6 #define IA64_REGION_ID_KERNEL 0
7 #else // CONFIG_VTI
8 #define IA64_REGION_ID_KERNEL 0x1e0000 /* Start from all 1 in highest 4 bits */
9 #endif // CONFIG_VTI
10 #define ia64_rid(ctx,addr) (((ctx) << 3) | (addr >> 61))
12 #ifndef __ASSEMBLY__
13 struct ia64_ctx {
14 spinlock_t lock;
15 unsigned int next; /* next context number to use */
16 unsigned int limit; /* next >= limit => must call wrap_mmu_context() */
17 unsigned int max_ctx; /* max. context value supported by all CPUs */
18 };
20 extern struct ia64_ctx ia64_ctx;
21 #endif /* ! __ASSEMBLY__ */
22 #endif
23 #endif /* ! __ASM_MMU_CONTEXT_H */