| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 6 | | - * published by the Free Software Foundation. |
|---|
| 7 | 4 | */ |
|---|
| 8 | 5 | |
|---|
| 9 | 6 | #ifndef __ASM_LINKAGE_H |
|---|
| .. | .. |
|---|
| 12 | 9 | #include <asm/dwarf.h> |
|---|
| 13 | 10 | |
|---|
| 14 | 11 | #ifdef __ASSEMBLY__ |
|---|
| 12 | + |
|---|
| 13 | +.macro ST2 e, o, off |
|---|
| 14 | +#ifdef CONFIG_ARC_HAS_LL64 |
|---|
| 15 | + std \e, [sp, \off] |
|---|
| 16 | +#else |
|---|
| 17 | + st \e, [sp, \off] |
|---|
| 18 | + st \o, [sp, \off+4] |
|---|
| 19 | +#endif |
|---|
| 20 | +.endm |
|---|
| 21 | + |
|---|
| 22 | +.macro LD2 e, o, off |
|---|
| 23 | +#ifdef CONFIG_ARC_HAS_LL64 |
|---|
| 24 | + ldd \e, [sp, \off] |
|---|
| 25 | +#else |
|---|
| 26 | + ld \e, [sp, \off] |
|---|
| 27 | + ld \o, [sp, \off+4] |
|---|
| 28 | +#endif |
|---|
| 29 | +.endm |
|---|
| 15 | 30 | |
|---|
| 16 | 31 | #define ASM_NL ` /* use '`' to mark new line in macro */ |
|---|
| 17 | 32 | #define __ALIGN .align 4 |
|---|
| .. | .. |
|---|
| 49 | 64 | #else /* !__ASSEMBLY__ */ |
|---|
| 50 | 65 | |
|---|
| 51 | 66 | #ifdef CONFIG_ARC_HAS_ICCM |
|---|
| 52 | | -#define __arcfp_code __attribute__((__section__(".text.arcfp"))) |
|---|
| 67 | +#define __arcfp_code __section(".text.arcfp") |
|---|
| 53 | 68 | #else |
|---|
| 54 | | -#define __arcfp_code __attribute__((__section__(".text"))) |
|---|
| 69 | +#define __arcfp_code __section(".text") |
|---|
| 55 | 70 | #endif |
|---|
| 56 | 71 | |
|---|
| 57 | 72 | #ifdef CONFIG_ARC_HAS_DCCM |
|---|
| 58 | | -#define __arcfp_data __attribute__((__section__(".data.arcfp"))) |
|---|
| 73 | +#define __arcfp_data __section(".data.arcfp") |
|---|
| 59 | 74 | #else |
|---|
| 60 | | -#define __arcfp_data __attribute__((__section__(".data"))) |
|---|
| 75 | +#define __arcfp_data __section(".data") |
|---|
| 61 | 76 | #endif |
|---|
| 62 | 77 | |
|---|
| 63 | 78 | #endif /* __ASSEMBLY__ */ |
|---|