diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-29 17:23:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-29 17:23:21 -0500 |
commit | 92af254a1b7ea8c09ddff83887e5edc1342b37f8 (patch) | |
tree | 1a390e67b4b047cb706bd26f6e9c52670153c3ac /arch | |
parent | f747307ed1defcdfd37a3ef84c48e3138691cd26 (diff) | |
parent | 5a94bcfd2a18edcf368b3128c7df07b58e529932 (diff) |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/kernel/ia64_ksyms.c | 1 | ||||
-rw-r--r-- | arch/ia64/kernel/kprobes.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/traps.c | 18 |
3 files changed, 2 insertions, 19 deletions
diff --git a/arch/ia64/kernel/ia64_ksyms.c b/arch/ia64/kernel/ia64_ksyms.c index 01572814abe4..5db9d3bcbbcb 100644 --- a/arch/ia64/kernel/ia64_ksyms.c +++ b/arch/ia64/kernel/ia64_ksyms.c | |||
@@ -42,6 +42,7 @@ EXPORT_SYMBOL(clear_page); | |||
42 | 42 | ||
43 | #ifdef CONFIG_VIRTUAL_MEM_MAP | 43 | #ifdef CONFIG_VIRTUAL_MEM_MAP |
44 | #include <linux/bootmem.h> | 44 | #include <linux/bootmem.h> |
45 | EXPORT_SYMBOL(min_low_pfn); /* defined by bootmem.c, but not exported by generic code */ | ||
45 | EXPORT_SYMBOL(max_low_pfn); /* defined by bootmem.c, but not exported by generic code */ | 46 | EXPORT_SYMBOL(max_low_pfn); /* defined by bootmem.c, but not exported by generic code */ |
46 | #endif | 47 | #endif |
47 | 48 | ||
diff --git a/arch/ia64/kernel/kprobes.c b/arch/ia64/kernel/kprobes.c index 801eeaeaf3de..2895d6e6062f 100644 --- a/arch/ia64/kernel/kprobes.c +++ b/arch/ia64/kernel/kprobes.c | |||
@@ -740,7 +740,7 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self, | |||
740 | switch(val) { | 740 | switch(val) { |
741 | case DIE_BREAK: | 741 | case DIE_BREAK: |
742 | /* err is break number from ia64_bad_break() */ | 742 | /* err is break number from ia64_bad_break() */ |
743 | if (args->err == 0x80200 || args->err == 0x80300) | 743 | if (args->err == 0x80200 || args->err == 0x80300 || args->err == 0) |
744 | if (pre_kprobes_handler(args)) | 744 | if (pre_kprobes_handler(args)) |
745 | ret = NOTIFY_STOP; | 745 | ret = NOTIFY_STOP; |
746 | break; | 746 | break; |
diff --git a/arch/ia64/kernel/traps.c b/arch/ia64/kernel/traps.c index fba5fdd1f968..d3e0ecb56d62 100644 --- a/arch/ia64/kernel/traps.c +++ b/arch/ia64/kernel/traps.c | |||
@@ -132,24 +132,6 @@ __kprobes ia64_bad_break (unsigned long break_num, struct pt_regs *regs) | |||
132 | siginfo_t siginfo; | 132 | siginfo_t siginfo; |
133 | int sig, code; | 133 | int sig, code; |
134 | 134 | ||
135 | /* break.b always sets cr.iim to 0, which causes problems for | ||
136 | * debuggers. Get the real break number from the original instruction, | ||
137 | * but only for kernel code. User space break.b is left alone, to | ||
138 | * preserve the existing behaviour. All break codings have the same | ||
139 | * format, so there is no need to check the slot type. | ||
140 | */ | ||
141 | if (break_num == 0 && !user_mode(regs)) { | ||
142 | struct ia64_psr *ipsr = ia64_psr(regs); | ||
143 | unsigned long *bundle = (unsigned long *)regs->cr_iip; | ||
144 | unsigned long slot; | ||
145 | switch (ipsr->ri) { | ||
146 | case 0: slot = (bundle[0] >> 5); break; | ||
147 | case 1: slot = (bundle[0] >> 46) | (bundle[1] << 18); break; | ||
148 | default: slot = (bundle[1] >> 23); break; | ||
149 | } | ||
150 | break_num = ((slot >> 36 & 1) << 20) | (slot >> 6 & 0xfffff); | ||
151 | } | ||
152 | |||
153 | /* SIGILL, SIGFPE, SIGSEGV, and SIGBUS want these field initialized: */ | 135 | /* SIGILL, SIGFPE, SIGSEGV, and SIGBUS want these field initialized: */ |
154 | siginfo.si_addr = (void __user *) (regs->cr_iip + ia64_psr(regs)->ri); | 136 | siginfo.si_addr = (void __user *) (regs->cr_iip + ia64_psr(regs)->ri); |
155 | siginfo.si_imm = break_num; | 137 | siginfo.si_imm = break_num; |