ia64/xen-unstable

view xen/arch/ia64/xen/crash.c @ 16785:af3550f53874

[IA64] domheap: Don't pin xenheap down. Now it's unnecessary.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Thu Jan 17 12:05:43 2008 -0700 (2008-01-17)
parents 2b0cbf3ef83f
children
line source
1 /******************************************************************************
2 * crash.c
3 *
4 * Based heavily on arch/ia64/kernel/crash.c from Linux 2.6.20-rc1
5 *
6 * Xen port written by:
7 * - Simon 'Horms' Horman <horms@verge.net.au>
8 * - Magnus Damm <magnus@valinux.co.jp>
9 */
11 #include <xen/types.h> /* Should be included by xen/kexec.h ? */
12 #include <linux/thread_info.h> /* Should be included by linux/preempt.h ? */
14 #include <xen/kexec.h>
15 #include <linux/hardirq.h>
16 #include <linux/smp.h>
17 #include <asm/processor.h>
18 #include <xen/sched.h>
20 void machine_crash_shutdown(void)
21 {
22 crash_xen_info_t *info;
23 unsigned long dom0_mm_pgd_mfn;
25 if (in_interrupt())
26 ia64_eoi();
27 kexec_crash_save_info();
28 info = kexec_crash_save_info();
29 /* Info is not word aligned on ia64 */
30 dom0_mm_pgd_mfn = __pa(dom0->arch.mm.pgd) >> PAGE_SHIFT;
31 memcpy((char *)info + offsetof(crash_xen_info_t, dom0_mm_pgd_mfn),
32 &dom0_mm_pgd_mfn, sizeof(dom0_mm_pgd_mfn));
33 kexec_disable_iosapic();
34 #ifdef CONFIG_SMP
35 smp_send_stop();
36 #endif
37 }
39 /*
40 * Local variables:
41 * mode: C
42 * c-set-style: "BSD"
43 * c-basic-offset: 4
44 * tab-width: 4
45 * indent-tabs-mode: nil
46 * End:
47 */