From: Daniel Kiper Date: Thu, 21 Jun 2012 13:29:39 +0000 (+0200) Subject: x86/xen: Add placeholder for i386 kexec/kdump implementation X-Git-Tag: v2.6.39-400.9.0~514^2~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a61dd004f4e5113a2a2e6dda599ad6c5308b9ad9;p=users%2Fjedix%2Flinux-maple.git x86/xen: Add placeholder for i386 kexec/kdump implementation Add placeholder for i386 kexec/kdump implementation to not break compilation on this architecture. Signed-off-by: Daniel Kiper --- diff --git a/arch/x86/xen/machine_kexec_32.c b/arch/x86/xen/machine_kexec_32.c new file mode 100644 index 000000000000..b04cb0c0ff1a --- /dev/null +++ b/arch/x86/xen/machine_kexec_32.c @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2011 Daniel Kiper + * Copyright (c) 2012 Daniel Kiper, Oracle Corporation + * + * kexec/kdump implementation for Xen was written by Daniel Kiper. + * Initial work on it was sponsored by Google under Google Summer + * of Code 2011 program and Citrix. Konrad Rzeszutek Wilk from Oracle + * was the mentor for this project. + * + * Some ideas are taken from: + * - native kexec/kdump implementation, + * - kexec/kdump implementation for Xen Linux Kernel Ver. 2.6.18, + * - PV-GRUB. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#include + +/* + * kexec/kdump for Xen i386 is not yet implemented. + * Here is only placeholder to not break compilation on i386. + */ + +void __init xen_init_kexec_ops(void) +{ +} diff --git a/arch/x86/xen/relocate_kernel_32.S b/arch/x86/xen/relocate_kernel_32.S new file mode 100644 index 000000000000..6d2165399dbc --- /dev/null +++ b/arch/x86/xen/relocate_kernel_32.S @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2002-2005 Eric Biederman + * Copyright (c) 2011 Daniel Kiper + * Copyright (c) 2012 Daniel Kiper, Oracle Corporation + * + * kexec/kdump implementation for Xen was written by Daniel Kiper. + * Initial work on it was sponsored by Google under Google Summer + * of Code 2011 program and Citrix. Konrad Rzeszutek Wilk from Oracle + * was the mentor for this project. + * + * Some ideas are taken from: + * - native kexec/kdump implementation, + * - kexec/kdump implementation for Xen Linux Kernel Ver. 2.6.18, + * - PV-GRUB. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +/* + * kexec/kdump for Xen i386 is not yet implemented. + * Here is only placeholder to not break compilation on i386. + */ + + .text + .globl xen_kexec_control_code_size, xen_relocate_kernel + +xen_relocate_kernel: + retl + +xen_kexec_control_code_size: + .long . - xen_relocate_kernel