diff options
Diffstat (limited to 'arch/powerpc/include/asm/module.h')
-rw-r--r-- | arch/powerpc/include/asm/module.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/module.h b/arch/powerpc/include/asm/module.h index e5f14b13ccf0..340bc699b620 100644 --- a/arch/powerpc/include/asm/module.h +++ b/arch/powerpc/include/asm/module.h | |||
@@ -34,6 +34,11 @@ struct mod_arch_specific { | |||
34 | #ifdef __powerpc64__ | 34 | #ifdef __powerpc64__ |
35 | unsigned int stubs_section; /* Index of stubs section in module */ | 35 | unsigned int stubs_section; /* Index of stubs section in module */ |
36 | unsigned int toc_section; /* What section is the TOC? */ | 36 | unsigned int toc_section; /* What section is the TOC? */ |
37 | #ifdef CONFIG_DYNAMIC_FTRACE | ||
38 | unsigned long toc; | ||
39 | unsigned long tramp; | ||
40 | #endif | ||
41 | |||
37 | #else | 42 | #else |
38 | /* Indices of PLT sections within module. */ | 43 | /* Indices of PLT sections within module. */ |
39 | unsigned int core_plt_section; | 44 | unsigned int core_plt_section; |
@@ -68,6 +73,12 @@ struct mod_arch_specific { | |||
68 | # endif /* MODULE */ | 73 | # endif /* MODULE */ |
69 | #endif | 74 | #endif |
70 | 75 | ||
76 | #ifdef CONFIG_DYNAMIC_FTRACE | ||
77 | # ifdef MODULE | ||
78 | asm(".section .ftrace.tramp,\"ax\",@nobits; .align 3; .previous"); | ||
79 | # endif /* MODULE */ | ||
80 | #endif | ||
81 | |||
71 | 82 | ||
72 | struct exception_table_entry; | 83 | struct exception_table_entry; |
73 | void sort_ex_table(struct exception_table_entry *start, | 84 | void sort_ex_table(struct exception_table_entry *start, |