diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:37:58 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-08 05:37:58 -0400 |
| commit | 5a2cec83a9bb1b4295aa8ab728fcb8ca1811a33c (patch) | |
| tree | 2f83dc6949763e77cf6422e696dc6146684dcf4e /arch/sparc64/mm | |
| parent | f2c853bca542f5ac0b036377637192a74f2091c2 (diff) | |
| parent | caf39e87cc1182f7dae84eefc43ca14d54c78ef9 (diff) | |
Merge /spare/repo/linux-2.6/
Diffstat (limited to 'arch/sparc64/mm')
| -rw-r--r-- | arch/sparc64/mm/fault.c | 8 | ||||
| -rw-r--r-- | arch/sparc64/mm/init.c | 3 | ||||
| -rw-r--r-- | arch/sparc64/mm/ultra.S | 2 |
3 files changed, 9 insertions, 4 deletions
diff --git a/arch/sparc64/mm/fault.c b/arch/sparc64/mm/fault.c index 52e9375288a9..db1e3310e907 100644 --- a/arch/sparc64/mm/fault.c +++ b/arch/sparc64/mm/fault.c | |||
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <linux/smp_lock.h> | 18 | #include <linux/smp_lock.h> |
| 19 | #include <linux/init.h> | 19 | #include <linux/init.h> |
| 20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
| 21 | #include <linux/kprobes.h> | ||
| 21 | 22 | ||
| 22 | #include <asm/page.h> | 23 | #include <asm/page.h> |
| 23 | #include <asm/pgtable.h> | 24 | #include <asm/pgtable.h> |
| @@ -117,8 +118,9 @@ unsigned long __init prom_probe_memory (void) | |||
| 117 | return tally; | 118 | return tally; |
| 118 | } | 119 | } |
| 119 | 120 | ||
| 120 | static void unhandled_fault(unsigned long address, struct task_struct *tsk, | 121 | static void __kprobes unhandled_fault(unsigned long address, |
| 121 | struct pt_regs *regs) | 122 | struct task_struct *tsk, |
| 123 | struct pt_regs *regs) | ||
| 122 | { | 124 | { |
| 123 | if ((unsigned long) address < PAGE_SIZE) { | 125 | if ((unsigned long) address < PAGE_SIZE) { |
| 124 | printk(KERN_ALERT "Unable to handle kernel NULL " | 126 | printk(KERN_ALERT "Unable to handle kernel NULL " |
| @@ -304,7 +306,7 @@ cannot_handle: | |||
| 304 | unhandled_fault (address, current, regs); | 306 | unhandled_fault (address, current, regs); |
| 305 | } | 307 | } |
| 306 | 308 | ||
| 307 | asmlinkage void do_sparc64_fault(struct pt_regs *regs) | 309 | asmlinkage void __kprobes do_sparc64_fault(struct pt_regs *regs) |
| 308 | { | 310 | { |
| 309 | struct mm_struct *mm = current->mm; | 311 | struct mm_struct *mm = current->mm; |
| 310 | struct vm_area_struct *vma; | 312 | struct vm_area_struct *vma; |
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index 3fbaf342a452..fdb1ebb308c9 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <linux/pagemap.h> | 19 | #include <linux/pagemap.h> |
| 20 | #include <linux/fs.h> | 20 | #include <linux/fs.h> |
| 21 | #include <linux/seq_file.h> | 21 | #include <linux/seq_file.h> |
| 22 | #include <linux/kprobes.h> | ||
| 22 | 23 | ||
| 23 | #include <asm/head.h> | 24 | #include <asm/head.h> |
| 24 | #include <asm/system.h> | 25 | #include <asm/system.h> |
| @@ -250,7 +251,7 @@ out: | |||
| 250 | put_cpu(); | 251 | put_cpu(); |
| 251 | } | 252 | } |
| 252 | 253 | ||
| 253 | void flush_icache_range(unsigned long start, unsigned long end) | 254 | void __kprobes flush_icache_range(unsigned long start, unsigned long end) |
| 254 | { | 255 | { |
| 255 | /* Cheetah has coherent I-cache. */ | 256 | /* Cheetah has coherent I-cache. */ |
| 256 | if (tlb_type == spitfire) { | 257 | if (tlb_type == spitfire) { |
diff --git a/arch/sparc64/mm/ultra.S b/arch/sparc64/mm/ultra.S index 8dfa825eca51..b2ee9b53227f 100644 --- a/arch/sparc64/mm/ultra.S +++ b/arch/sparc64/mm/ultra.S | |||
| @@ -119,6 +119,7 @@ __spitfire_flush_tlb_mm_slow: | |||
| 119 | #else | 119 | #else |
| 120 | #error unsupported PAGE_SIZE | 120 | #error unsupported PAGE_SIZE |
| 121 | #endif | 121 | #endif |
| 122 | .section .kprobes.text, "ax" | ||
| 122 | .align 32 | 123 | .align 32 |
| 123 | .globl __flush_icache_page | 124 | .globl __flush_icache_page |
| 124 | __flush_icache_page: /* %o0 = phys_page */ | 125 | __flush_icache_page: /* %o0 = phys_page */ |
| @@ -201,6 +202,7 @@ dflush4:stxa %g0, [%o4] ASI_DCACHE_TAG | |||
| 201 | nop | 202 | nop |
| 202 | #endif /* DCACHE_ALIASING_POSSIBLE */ | 203 | #endif /* DCACHE_ALIASING_POSSIBLE */ |
| 203 | 204 | ||
| 205 | .previous .text | ||
| 204 | .align 32 | 206 | .align 32 |
| 205 | __prefill_dtlb: | 207 | __prefill_dtlb: |
| 206 | rdpr %pstate, %g7 | 208 | rdpr %pstate, %g7 |
