ia64/xen-unstable

annotate 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
rev   line source
adsharma@5046 1 #ifndef _ASM_IA64_XENSYSTEM_H
adsharma@5046 2 #define _ASM_IA64_XENSYSTEM_H
adsharma@5046 3 /*
adsharma@5046 4 * xen specific context definition
adsharma@5046 5 *
adsharma@5046 6 * Copyright (C) 2005 Hewlett-Packard Co.
adsharma@5046 7 * Dan Magenheimer (dan.magenheimer@hp.com)
adsharma@5046 8 *
adsharma@5046 9 * Copyright (C) 2005 Intel Co.
adsharma@5046 10 * Kun Tian (Kevin Tian) <kevin.tian@intel.com>
adsharma@5046 11 *
adsharma@5046 12 */
adsharma@5046 13 #include <asm/config.h>
adsharma@5046 14 #include <linux/kernel.h>
adsharma@5046 15
awilliam@9744 16 /* Define HV space hierarchy.
awilliam@9744 17 VMM memory space is protected by CPL for paravirtualized domains and
awilliam@9744 18 by VA for VTi domains. VTi imposes VA bit 60 != VA bit 59 for VMM. */
adsharma@5046 19 #define XEN_VIRT_SPACE_LOW 0xe800000000000000
adsharma@5046 20 #define XEN_VIRT_SPACE_HIGH 0xf800000000000000
adsharma@5046 21
awilliam@9744 22 #define __IA64_UNCACHED_OFFSET 0xe800000000000000UL
awilliam@9744 23
fred@5818 24 #define XEN_START_ADDR 0xf000000000000000
djm@6723 25 #define HYPERVISOR_VIRT_START 0xf000000000000000
adsharma@5046 26 #define KERNEL_START 0xf000000004000000
adsharma@5046 27 #define SHAREDINFO_ADDR 0xf100000000000000
awilliam@9770 28 #define XSI_OFS PAGE_SIZE
awilliam@9770 29 #define SHARED_ARCHINFO_ADDR (SHAREDINFO_ADDR + XSI_OFS)
awilliam@9407 30 #define PERCPU_ADDR (SHAREDINFO_ADDR - PERCPU_PAGE_SIZE)
adsharma@5046 31 #define VHPT_ADDR 0xf200000000000000
awilliam@9689 32 #ifdef CONFIG_VIRTUAL_FRAME_TABLE
awilliam@9689 33 #define VIRT_FRAME_TABLE_ADDR 0xf300000000000000
awilliam@9689 34 #define VIRT_FRAME_TABLE_END 0xf400000000000000
awilliam@9689 35 #endif
fred@5818 36 #define XEN_END_ADDR 0xf400000000000000
adsharma@5046 37
awilliam@9770 38 #define PAGE_OFFSET __IA64_UL_CONST(0xf000000000000000)
awilliam@9770 39
awilliam@9744 40 #define IS_VMM_ADDRESS(addr) ((((addr) >> 60) ^ ((addr) >> 59)) & 1)
awilliam@9744 41
adsharma@5046 42 #endif // _ASM_IA64_XENSYSTEM_H