/* * HW exception handling * * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> * Copyright (C) 2008 PetaLogix * * This file is subject to the terms and conditions of the GNU General * Public License. See the file COPYING in the main directory of this * archive for more details.
*/
/* * This file handles the architecture-dependent parts of hardware exceptions
*/
#include <asm/exceptions.h> #include <asm/entry.h> /* For KM CPU var */ #include <linux/uaccess.h> #include <linux/errno.h> #include <linux/ptrace.h> #include <asm/current.h> #include <asm/cacheflush.h>
void die(constchar *str, struct pt_regs *fp, long err)
{
console_verbose();
spin_lock_irq(&die_lock);
pr_warn("Oops: %s, sig: %ld\n", str, err);
show_regs(fp);
spin_unlock_irq(&die_lock); /* make_task_dead() should take care of panic'ing from an interrupt * context so we don't handle it here
*/
make_task_dead(err);
}
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.