ia64/linux-2.6.18-xen.hg

view arch/ia64/xen/xcom_asm.S @ 406:3588f645c754

[IA64] Split xencomm_arch_hypercall_suspend to its own file

This allows us to use it from the unmodified driver, eliminating the following
error:

Loading xen-platform-pci.ko module
xen_platform_pci: Unknown symbol xencomm_hypercall_suspend
insmod: error inserting '/lib/xen-platform-pci.ko':
-1 Unknown symbol in module
ERROR: /bin/insmod exited abnormally! (pid 210)

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Mon Feb 04 08:35:36 2008 -0700 (2008-02-04)
parents
children
line source
1 /*
2 * xencomm suspend support
3 * Support routines for Xen
4 *
5 * Copyright (C) 2005 Dan Magenheimer <dan.magenheimer@hp.com>
6 */
7 #include <asm/asmmacro.h>
8 #include <xen/interface/xen.h>
10 /*
11 * Stub for suspend.
12 * Just force the stacked registers to be written in memory.
13 */
14 GLOBAL_ENTRY(xencomm_arch_hypercall_suspend)
15 ;;
16 alloc r20=ar.pfs,0,0,6,0
17 mov r2=__HYPERVISOR_sched_op
18 ;;
19 /* We don't want to deal with RSE. */
20 flushrs
21 mov r33=r32
22 mov r32=2 // SCHEDOP_shutdown
23 ;;
24 break 0x1000
25 ;;
26 br.ret.sptk.many b0
27 END(xencomm_arch_hypercall_suspend)