2007-05-06 15:51:07 -06:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
|
|
|
|
* Licensed under the GPL
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ARCH_H__
|
|
|
|
#define __ARCH_H__
|
|
|
|
|
|
|
|
#include "sysdep/ptrace.h"
|
|
|
|
|
|
|
|
extern void arch_check_bugs(void);
|
2007-10-16 02:26:58 -06:00
|
|
|
extern int arch_fixup(unsigned long address, struct uml_pt_regs *regs);
|
uml: further bugs.c tidying
bugs.c, for both i386 and x86_64, can undergo further cleaning -
The i386 arch_check_bugs only does one thing, so we might as
well inline the cmov checking.
The i386 includes can be trimmed down a bit.
arch_init_thread wasn't used, so it is deleted.
The panics in arch_handle_signal are turned into printks
because the process is about to get segfaulted anyway, so something is
dying no matter what happens here. Also, the return value was always
the same, so it contained no information, so it can be void instead.
The name is changed to arch_examine_signal because it doesn't handle
anything.
The caller of arch_handle_signal, relay_signal, does things in
a different order. The kernel-mode signal check is now first, which
puts everything else together, making things a bit clearer conceptually.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-04 23:30:40 -07:00
|
|
|
extern void arch_examine_signal(int sig, struct uml_pt_regs *regs);
|
2007-05-06 15:51:07 -06:00
|
|
|
|
|
|
|
#endif
|