|
5 | 5 | #include <linux/stddef.h> |
6 | 6 | #include <linux/stringify.h> |
7 | 7 | #include <asm/asm.h> |
8 | | -#include <asm/ptrace.h> |
9 | 8 |
|
10 | 9 | /* |
11 | 10 | * Alternative inline assembly for SMP. |
@@ -233,36 +232,4 @@ static inline int alternatives_text_reserved(void *start, void *end) |
233 | 232 | */ |
234 | 233 | #define ASM_NO_INPUT_CLOBBER(clbr...) "i" (0) : clbr |
235 | 234 |
|
236 | | -struct paravirt_patch_site; |
237 | | -#ifdef CONFIG_PARAVIRT |
238 | | -void apply_paravirt(struct paravirt_patch_site *start, |
239 | | - struct paravirt_patch_site *end); |
240 | | -#else |
241 | | -static inline void apply_paravirt(struct paravirt_patch_site *start, |
242 | | - struct paravirt_patch_site *end) |
243 | | -{} |
244 | | -#define __parainstructions NULL |
245 | | -#define __parainstructions_end NULL |
246 | | -#endif |
247 | | - |
248 | | -extern void *text_poke_early(void *addr, const void *opcode, size_t len); |
249 | | - |
250 | | -/* |
251 | | - * Clear and restore the kernel write-protection flag on the local CPU. |
252 | | - * Allows the kernel to edit read-only pages. |
253 | | - * Side-effect: any interrupt handler running between save and restore will have |
254 | | - * the ability to write to read-only pages. |
255 | | - * |
256 | | - * Warning: |
257 | | - * Code patching in the UP case is safe if NMIs and MCE handlers are stopped and |
258 | | - * no thread can be preempted in the instructions being modified (no iret to an |
259 | | - * invalid instruction possible) or if the instructions are changed from a |
260 | | - * consistent state to another consistent state atomically. |
261 | | - * On the local CPU you need to be protected again NMI or MCE handlers seeing an |
262 | | - * inconsistent instruction while you patch. |
263 | | - */ |
264 | | -extern void *text_poke(void *addr, const void *opcode, size_t len); |
265 | | -extern int poke_int3_handler(struct pt_regs *regs); |
266 | | -extern void *text_poke_bp(void *addr, const void *opcode, size_t len, void *handler); |
267 | | - |
268 | 235 | #endif /* _ASM_X86_ALTERNATIVE_H */ |
0 commit comments