/* * On FSL-BookE we setup a 1:1 mapping which covers the first 2GiB of memory * and therefore we can only deal with memory within this range
*/ #define KEXEC_SOURCE_MEMORY_LIMIT (2 * 1024 * 1024 * 1024UL - 1) #define KEXEC_DESTINATION_MEMORY_LIMIT (2 * 1024 * 1024 * 1024UL - 1) #define KEXEC_CONTROL_MEMORY_LIMIT (2 * 1024 * 1024 * 1024UL - 1)
#else
/* * Maximum page that is mapped directly into kernel memory. * XXX: Since we copy virt we can use any page we allocate
*/ #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
/* * Maximum address we can reach in physical address mode. * XXX: I want to allow initrd in highmem. Otherwise set to rmo on LPAR.
*/ #define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
/* Maximum address we can use for the control code buffer */ #ifdef __powerpc64__ #define KEXEC_CONTROL_MEMORY_LIMIT (-1UL) #else /* TASK_SIZE, probably left over from use_mm ?? */ #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE #endif #endif
externvoid kexec_smp_wait(void); /* get and clear naca physid, wait for
master to copy new code to 0 */ externvoid default_machine_kexec(struct kimage *image);
#ifdefined(CONFIG_CRASH_DUMP) /* * This function is responsible for capturing register states if coming * via panic or invoking dump using sysrq-trigger.
*/ staticinlinevoid crash_setup_regs(struct pt_regs *newregs, struct pt_regs *oldregs)
{ if (oldregs)
memcpy(newregs, oldregs, sizeof(*newregs)); else
ppc_save_regs(newregs);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.