| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2015 Regents of the University of California |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or |
|---|
| 5 | | - * modify it under the terms of the GNU General Public License |
|---|
| 6 | | - * as published by the Free Software Foundation, version 2. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | | - * GNU General Public License for more details. |
|---|
| 12 | 4 | */ |
|---|
| 13 | 5 | |
|---|
| 14 | 6 | #ifndef _ASM_RISCV_ASM_H |
|---|
| .. | .. |
|---|
| 30 | 22 | |
|---|
| 31 | 23 | #define REG_L __REG_SEL(ld, lw) |
|---|
| 32 | 24 | #define REG_S __REG_SEL(sd, sw) |
|---|
| 25 | +#define REG_SC __REG_SEL(sc.d, sc.w) |
|---|
| 33 | 26 | #define SZREG __REG_SEL(8, 4) |
|---|
| 34 | 27 | #define LGREG __REG_SEL(3, 2) |
|---|
| 35 | 28 | |
|---|