setup-common.c (da733563be5a9da26fe81d9f007262d00b846e22) | setup-common.c (ebaeb5ae24379b5b635dc1d1fa6df904bc95b4d9) |
---|---|
1/* 2 * Common boot and setup code for both 32-bit and 64-bit. 3 * Extracted from arch/powerpc/kernel/setup_64.c. 4 * 5 * Copyright (C) 2001 PPC64 Team, IBM Corp 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 47 unchanged lines hidden (view full) --- 56#include <asm/iommu.h> 57#include <asm/serial.h> 58#include <asm/cache.h> 59#include <asm/page.h> 60#include <asm/mmu.h> 61#include <asm/xmon.h> 62#include <asm/cputhreads.h> 63#include <mm/mmu_decl.h> | 1/* 2 * Common boot and setup code for both 32-bit and 64-bit. 3 * Extracted from arch/powerpc/kernel/setup_64.c. 4 * 5 * Copyright (C) 2001 PPC64 Team, IBM Corp 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 47 unchanged lines hidden (view full) --- 56#include <asm/iommu.h> 57#include <asm/serial.h> 58#include <asm/cache.h> 59#include <asm/page.h> 60#include <asm/mmu.h> 61#include <asm/xmon.h> 62#include <asm/cputhreads.h> 63#include <mm/mmu_decl.h> |
64#include <asm/fadump.h> |
|
64 65#include "setup.h" 66 67#ifdef DEBUG 68#include <asm/udbg.h> 69#define DBG(fmt...) udbg_printf(fmt) 70#else 71#define DBG(fmt...) --- 562 unchanged lines hidden (view full) --- 634 of_node_put(np); 635 return ret; 636} 637EXPORT_SYMBOL(check_legacy_ioport); 638 639static int ppc_panic_event(struct notifier_block *this, 640 unsigned long event, void *ptr) 641{ | 65 66#include "setup.h" 67 68#ifdef DEBUG 69#include <asm/udbg.h> 70#define DBG(fmt...) udbg_printf(fmt) 71#else 72#define DBG(fmt...) --- 562 unchanged lines hidden (view full) --- 635 of_node_put(np); 636 return ret; 637} 638EXPORT_SYMBOL(check_legacy_ioport); 639 640static int ppc_panic_event(struct notifier_block *this, 641 unsigned long event, void *ptr) 642{ |
643 /* 644 * If firmware-assisted dump has been registered then trigger 645 * firmware-assisted dump and let firmware handle everything else. 646 */ 647 crash_fadump(NULL, ptr); |
|
642 ppc_md.panic(ptr); /* May not return */ 643 return NOTIFY_DONE; 644} 645 646static struct notifier_block ppc_panic_block = { 647 .notifier_call = ppc_panic_event, 648 .priority = INT_MIN /* may not return; must be done last */ 649}; --- 71 unchanged lines hidden --- | 648 ppc_md.panic(ptr); /* May not return */ 649 return NOTIFY_DONE; 650} 651 652static struct notifier_block ppc_panic_block = { 653 .notifier_call = ppc_panic_event, 654 .priority = INT_MIN /* may not return; must be done last */ 655}; --- 71 unchanged lines hidden --- |