Unified · Split
| @@ -34,7 +34,8 @@ void apply_alternatives(struct alt_instr *start, struct alt_instr *end, · 33 unmodified lines | ||
| 34 | 34 | |
| 35 | 35 | /* Alternative SMP implementation. */ |
| 36 | 36 | #define ALTERNATIVE(cond, replacement) "!0:" \ |
| 37 | − ".section .altinstructions, \"aw\" !" \ | |
| 37 | + ".section .altinstructions, \"a\" !" \ | |
| 38 | + ".align 4 !" \ | |
| 38 | 39 | ".word (0b-4-.) !" \ |
| 39 | 40 | ".hword 1, " __stringify(cond) " !" \ |
| 40 | 41 | ".word " __stringify(replacement) " !" \ |
| @@ -44,7 +45,8 @@ void apply_alternatives(struct alt_instr *start, struct alt_instr *end, · 3 unmodified lines | ||
| 44 | 45 | |
| 45 | 46 | /* to replace one single instructions by a new instruction */ |
| 46 | 47 | #define ALTERNATIVE(from, to, cond, replacement)\ |
| 47 | − .section .altinstructions, "aw" ! \ | |
| 48 | + .section .altinstructions, "a" ! \ | |
| 49 | + .align 4 ! \ | |
| 48 | 50 | .word (from - .) ! \ |
| 49 | 51 | .hword (to - from)/4, cond ! \ |
| 50 | 52 | .word replacement ! \ |
| @@ -52,7 +54,8 @@ void apply_alternatives(struct alt_instr *start, struct alt_instr *end, · 1 unmodified line | ||
| 52 | 54 | |
| 53 | 55 | /* to replace multiple instructions by new code */ |
| 54 | 56 | #define ALTERNATIVE_CODE(from, num_instructions, cond, new_instr_ptr)\ |
| 55 | − .section .altinstructions, "aw" ! \ | |
| 57 | + .section .altinstructions, "a" ! \ | |
| 58 | + .align 4 ! \ | |
| 56 | 59 | .word (from - .) ! \ |
| 57 | 60 | .hword -num_instructions, cond ! \ |
| 58 | 61 | .word (new_instr_ptr - .) ! \ |