diff options
Diffstat (limited to 'arch/arm/kernel/entry-header.S')
-rw-r--r-- | arch/arm/kernel/entry-header.S | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S index 83e29adced6..9a8531eadd3 100644 --- a/arch/arm/kernel/entry-header.S +++ b/arch/arm/kernel/entry-header.S | |||
@@ -163,25 +163,6 @@ | |||
163 | .endm | 163 | .endm |
164 | #endif /* !CONFIG_THUMB2_KERNEL */ | 164 | #endif /* !CONFIG_THUMB2_KERNEL */ |
165 | 165 | ||
166 | @ | ||
167 | @ Debug exceptions are taken as prefetch or data aborts. | ||
168 | @ We must disable preemption during the handler so that | ||
169 | @ we can access the debug registers safely. | ||
170 | @ | ||
171 | .macro debug_entry, fsr | ||
172 | #if defined(CONFIG_HAVE_HW_BREAKPOINT) && defined(CONFIG_PREEMPT) | ||
173 | ldr r4, =0x40f @ mask out fsr.fs | ||
174 | and r5, r4, \fsr | ||
175 | cmp r5, #2 @ debug exception | ||
176 | bne 1f | ||
177 | get_thread_info r10 | ||
178 | ldr r6, [r10, #TI_PREEMPT] @ get preempt count | ||
179 | add r11, r6, #1 @ increment it | ||
180 | str r11, [r10, #TI_PREEMPT] | ||
181 | 1: | ||
182 | #endif | ||
183 | .endm | ||
184 | |||
185 | /* | 166 | /* |
186 | * These are the registers used in the syscall handler, and allow us to | 167 | * These are the registers used in the syscall handler, and allow us to |
187 | * have in theory up to 7 arguments to a function - r0 to r6. | 168 | * have in theory up to 7 arguments to a function - r0 to r6. |