mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
powerpc/code-patching: Move patch_exception() outside code-patching.c
patch_exception() is dedicated to book3e/64 is nothing more than a normal use of patch_branch(), so move it into a place dedicated to book3e/64. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/0968622b98b1fb51838c35b844c42ad6609de62e.1638446239.git.christophe.leroy@csgroup.eu
This commit is contained in:
committed by
Michael Ellerman
parent
ff14a9c09f
commit
29562a9da2
@@ -313,6 +313,12 @@ extern int __meminit vmemmap_create_mapping(unsigned long start,
|
||||
unsigned long phys);
|
||||
extern void vmemmap_remove_mapping(unsigned long start,
|
||||
unsigned long page_size);
|
||||
void __patch_exception(int exc, unsigned long addr);
|
||||
#define patch_exception(exc, name) do { \
|
||||
extern unsigned int name; \
|
||||
__patch_exception((exc), (unsigned long)&name); \
|
||||
} while (0)
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
||||
#endif /* _ASM_POWERPC_NOHASH_64_PGTABLE_H */
|
||||
|
||||
Reference in New Issue
Block a user