projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/debug: Implement __WARN() using UD0
[linux-2.6-block.git]
/
arch
/
x86
/
kernel
/
dumpstack_32.c
diff --git
a/arch/x86/kernel/dumpstack_32.c
b/arch/x86/kernel/dumpstack_32.c
index b0b3a3df7c2080d3d526908441fa93b449b6708f..e5f0b40e66d238b931d14d78ea579abd195a3350 100644
(file)
--- a/
arch/x86/kernel/dumpstack_32.c
+++ b/
arch/x86/kernel/dumpstack_32.c
@@
-162,15
+162,3
@@
void show_regs(struct pt_regs *regs)
}
pr_cont("\n");
}
-
-int is_valid_bugaddr(unsigned long ip)
-{
- unsigned short ud2;
-
- if (ip < PAGE_OFFSET)
- return 0;
- if (probe_kernel_address((unsigned short *)ip, ud2))
- return 0;
-
- return ud2 == 0x0b0f;
-}