Skip to content

Commit 8d92e99

Browse files
Eugeniy Paltsevvineetgarc
authored andcommitted
ARC: define __ALIGN_STR and __ALIGN symbols for ARC
The default defintions use fill pattern 0x90 for padding which for ARC generates unintended "ldh_s r12,[r0,0x20]" corresponding to opcode 0x9090 So use ".align 4" which insert a "nop_s" instruction instead. Cc: stable@vger.kernel.org Acked-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 204c7ec commit 8d92e99

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/arc/include/asm/linkage.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
.endm
3030

3131
#define ASM_NL ` /* use '`' to mark new line in macro */
32+
#define __ALIGN .align 4
33+
#define __ALIGN_STR __stringify(__ALIGN)
3234

3335
/* annotation for data we want in DCCM - if enabled in .config */
3436
.macro ARCFP_DATA nm

0 commit comments

Comments
 (0)