mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 21:52:04 +00:00
1eeb66a1bb
This patch moves the die notifier handling to common code. Previous various architectures had exactly the same code for it. Note that the new code is compiled unconditionally, this should be understood as an appel to the other architecture maintainer to implement support for it aswell (aka sprinkling a notify_die or two in the proper place) arm had a notifiy_die that did something totally different, I renamed it to arm_notify_die as part of the patch and made it static to the file it's declared and used at. avr32 used to pass slightly less information through this interface and I brought it into line with the other architectures. [akpm@linux-foundation.org: build fix] [akpm@linux-foundation.org: fix vmalloc_sync_all bustage] [bryan.wu@analog.com: fix vmalloc_sync_all in nommu] Signed-off-by: Christoph Hellwig <hch@lst.de> Cc: <linux-arch@vger.kernel.org> Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Bryan Wu <bryan.wu@analog.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
65 lines
1.8 KiB
C
65 lines
1.8 KiB
C
#ifndef _IA64_KDEBUG_H
|
|
#define _IA64_KDEBUG_H 1
|
|
/*
|
|
* include/asm-ia64/kdebug.h
|
|
*
|
|
* 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, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*
|
|
* Copyright (C) Intel Corporation, 2005
|
|
*
|
|
* 2005-Apr Rusty Lynch <rusty.lynch@intel.com> and Anil S Keshavamurthy
|
|
* <anil.s.keshavamurthy@intel.com> adopted from
|
|
* include/asm-x86_64/kdebug.h
|
|
*
|
|
* 2005-Oct Keith Owens <kaos@sgi.com>. Expand notify_die to cover more
|
|
* events.
|
|
*/
|
|
#include <linux/notifier.h>
|
|
|
|
extern int register_page_fault_notifier(struct notifier_block *);
|
|
extern int unregister_page_fault_notifier(struct notifier_block *);
|
|
|
|
enum die_val {
|
|
DIE_BREAK = 1,
|
|
DIE_FAULT,
|
|
DIE_OOPS,
|
|
DIE_PAGE_FAULT,
|
|
DIE_MACHINE_HALT,
|
|
DIE_MACHINE_RESTART,
|
|
DIE_MCA_MONARCH_ENTER,
|
|
DIE_MCA_MONARCH_PROCESS,
|
|
DIE_MCA_MONARCH_LEAVE,
|
|
DIE_MCA_SLAVE_ENTER,
|
|
DIE_MCA_SLAVE_PROCESS,
|
|
DIE_MCA_SLAVE_LEAVE,
|
|
DIE_MCA_RENDZVOUS_ENTER,
|
|
DIE_MCA_RENDZVOUS_PROCESS,
|
|
DIE_MCA_RENDZVOUS_LEAVE,
|
|
DIE_MCA_NEW_TIMEOUT,
|
|
DIE_INIT_ENTER,
|
|
DIE_INIT_MONARCH_ENTER,
|
|
DIE_INIT_MONARCH_PROCESS,
|
|
DIE_INIT_MONARCH_LEAVE,
|
|
DIE_INIT_SLAVE_ENTER,
|
|
DIE_INIT_SLAVE_PROCESS,
|
|
DIE_INIT_SLAVE_LEAVE,
|
|
DIE_KDEBUG_ENTER,
|
|
DIE_KDEBUG_LEAVE,
|
|
DIE_KDUMP_ENTER,
|
|
DIE_KDUMP_LEAVE,
|
|
};
|
|
|
|
#endif
|