Lines Matching +full:smp +full:- +full:offset
1 /* SPDX-License-Identifier: GPL-2.0 */
22 * Alternative inline assembly for SMP.
27 * SMP alternatives use the same data structures as the other
29 * UP system running a SMP kernel. The existing apply_alternatives()
30 * works fine for patching a SMP kernel for UP.
32 * The SMP alternative tables can be kept after boot and contain both
33 * UP and SMP versions of the instructions to allow switching back to
34 * SMP at runtime, when hotplugging in a new CPU, which is especially
46 ".long 671f - .\n" /* offset */ \
78 s32 repl_offset; /* offset to replacement instruction */
159 #define alt_slen "772b-771b"
160 #define alt_total_slen "773b-771b"
161 #define alt_rlen "775f-774f"
167 ".skip -(((" alt_rlen ")-(" alt_slen ")) > 0) * " \
168 "((" alt_rlen ")-(" alt_slen ")),0x90\n" \
173 " .long 771b - .\n" /* label */ \
174 " .long 774f - .\n" /* new instruction */ \
243 * constant expression with all syntax-specific punctuation omitted. %P
244 * is the x86-specific variant which can handle constants too, for
292 ".size " #func ", . - " #func "\n\t" \
305 .long 672b - .
331 .long \orig - .
332 .long \alt - .
352 .skip -(((744f-743f)-(741b-740b)) > 0) * ((744f-743f)-(741b-740b)),0x90 ;\
355 altinstr_entry 740b,743f,flag,742b-740b,744f-743f ; \
367 #define old_len 141b-140b
368 #define new_len1 144f-143f
369 #define new_len2 145f-144f
370 #define new_len3 146f-145f