module.c (c74a7469f97c0f40b46e82ee979f9fb1bb6e847c) module.c (179ab1cbf883575c3a585bcfc0f2160f1d22a149)
1/* Kernel module help for powerpc.
2 Copyright (C) 2001, 2003 Rusty Russell IBM Corporation.
3 Copyright (C) 2008 Freescale Semiconductor, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.

--- 58 unchanged lines hidden (view full) ---

67 (void *)sect->sh_addr + sect->sh_size);
68
69#ifdef CONFIG_PPC64
70 sect = find_section(hdr, sechdrs, "__fw_ftr_fixup");
71 if (sect != NULL)
72 do_feature_fixups(powerpc_firmware_features,
73 (void *)sect->sh_addr,
74 (void *)sect->sh_addr + sect->sh_size);
1/* Kernel module help for powerpc.
2 Copyright (C) 2001, 2003 Rusty Russell IBM Corporation.
3 Copyright (C) 2008 Freescale Semiconductor, Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.

--- 58 unchanged lines hidden (view full) ---

67 (void *)sect->sh_addr + sect->sh_size);
68
69#ifdef CONFIG_PPC64
70 sect = find_section(hdr, sechdrs, "__fw_ftr_fixup");
71 if (sect != NULL)
72 do_feature_fixups(powerpc_firmware_features,
73 (void *)sect->sh_addr,
74 (void *)sect->sh_addr + sect->sh_size);
75#endif /* CONFIG_PPC64 */
75
76
77#ifdef CONFIG_PPC_BARRIER_NOSPEC
76 sect = find_section(hdr, sechdrs, "__spec_barrier_fixup");
77 if (sect != NULL)
78 do_barrier_nospec_fixups_range(barrier_nospec_enabled,
79 (void *)sect->sh_addr,
80 (void *)sect->sh_addr + sect->sh_size);
78 sect = find_section(hdr, sechdrs, "__spec_barrier_fixup");
79 if (sect != NULL)
80 do_barrier_nospec_fixups_range(barrier_nospec_enabled,
81 (void *)sect->sh_addr,
82 (void *)sect->sh_addr + sect->sh_size);
81#endif
83#endif /* CONFIG_PPC_BARRIER_NOSPEC */
82
83 sect = find_section(hdr, sechdrs, "__lwsync_fixup");
84 if (sect != NULL)
85 do_lwsync_fixups(cur_cpu_spec->cpu_features,
86 (void *)sect->sh_addr,
87 (void *)sect->sh_addr + sect->sh_size);
88
89 return 0;
90}
84
85 sect = find_section(hdr, sechdrs, "__lwsync_fixup");
86 if (sect != NULL)
87 do_lwsync_fixups(cur_cpu_spec->cpu_features,
88 (void *)sect->sh_addr,
89 (void *)sect->sh_addr + sect->sh_size);
90
91 return 0;
92}