File: riscv.S

package info (click to toggle)
optee-os 4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,560 kB
  • sloc: ansic: 441,914; asm: 12,903; python: 3,719; makefile: 1,676; sh: 238
file content (14 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (c) 2023 Andes Technology Corporation
 */

#if __riscv_xlen == 32
#define STR       sw
#define LDR       lw
#define REGOFF(x) ((x) * 4)
#elif __riscv_xlen == 64
#define STR       sd
#define LDR       ld
#define REGOFF(x) ((x) * 8)
#endif