ia64/xen-unstable

view xen/include/asm-ia64/xensystem.h @ 9770:ced37bea0647

[IA64] FPH enabling + cleanup

Move contents of switch_to macro from xensystem.h to context_switch function.
Initialize FPU on all processors. FPH is always enabled in Xen.
Speed up context-switch (a little bit!) by not enabling/disabling FPH.
Cleanup (unused function/variablesi/fields, debug printf...)
vmx_ia64_switch_to removed (was unused).

Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
author awilliam@xenbuild.aw
date Tue Apr 25 22:35:41 2006 -0600 (2006-04-25)
parents 7ed6c203efe9
children bf396988059e
line source
1 #ifndef _ASM_IA64_XENSYSTEM_H
2 #define _ASM_IA64_XENSYSTEM_H
3 /*
4 * xen specific context definition
5 *
6 * Copyright (C) 2005 Hewlett-Packard Co.
7 * Dan Magenheimer (dan.magenheimer@hp.com)
8 *
9 * Copyright (C) 2005 Intel Co.
10 * Kun Tian (Kevin Tian) <kevin.tian@intel.com>
11 *
12 */
13 #include <asm/config.h>
14 #include <linux/kernel.h>
16 /* Define HV space hierarchy.
17 VMM memory space is protected by CPL for paravirtualized domains and
18 by VA for VTi domains. VTi imposes VA bit 60 != VA bit 59 for VMM. */
19 #define XEN_VIRT_SPACE_LOW 0xe800000000000000
20 #define XEN_VIRT_SPACE_HIGH 0xf800000000000000
22 #define __IA64_UNCACHED_OFFSET 0xe800000000000000UL
24 #define XEN_START_ADDR 0xf000000000000000
25 #define HYPERVISOR_VIRT_START 0xf000000000000000
26 #define KERNEL_START 0xf000000004000000
27 #define SHAREDINFO_ADDR 0xf100000000000000
28 #define XSI_OFS PAGE_SIZE
29 #define SHARED_ARCHINFO_ADDR (SHAREDINFO_ADDR + XSI_OFS)
30 #define PERCPU_ADDR (SHAREDINFO_ADDR - PERCPU_PAGE_SIZE)
31 #define VHPT_ADDR 0xf200000000000000
32 #ifdef CONFIG_VIRTUAL_FRAME_TABLE
33 #define VIRT_FRAME_TABLE_ADDR 0xf300000000000000
34 #define VIRT_FRAME_TABLE_END 0xf400000000000000
35 #endif
36 #define XEN_END_ADDR 0xf400000000000000
38 #define PAGE_OFFSET __IA64_UL_CONST(0xf000000000000000)
40 #define IS_VMM_ADDRESS(addr) ((((addr) >> 60) ^ ((addr) >> 59)) & 1)
42 #endif // _ASM_IA64_XENSYSTEM_H