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: [email protected] Acked-by: Vineet Gupta <[email protected]> Signed-off-by: Eugeniy Paltsev <[email protected]> Signed-off-by: Vineet Gupta <[email protected]>
1 parent 204c7ec commit 8d92e99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)