csr.h (b7f8f259896f669f131713b0c74ba4d008daa71d) | csr.h (6f4eea90465ad0cd5f3d041b9b2c728426f2b8d4) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (C) 2015 Regents of the University of California 4 */ 5 6#ifndef _ASM_RISCV_CSR_H 7#define _ASM_RISCV_CSR_H 8 --- 101 unchanged lines hidden (view full) --- 110#define CSR_MTVEC 0x305 111#define CSR_MSCRATCH 0x340 112#define CSR_MEPC 0x341 113#define CSR_MCAUSE 0x342 114#define CSR_MTVAL 0x343 115#define CSR_MIP 0x344 116#define CSR_PMPCFG0 0x3a0 117#define CSR_PMPADDR0 0x3b0 | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (C) 2015 Regents of the University of California 4 */ 5 6#ifndef _ASM_RISCV_CSR_H 7#define _ASM_RISCV_CSR_H 8 --- 101 unchanged lines hidden (view full) --- 110#define CSR_MTVEC 0x305 111#define CSR_MSCRATCH 0x340 112#define CSR_MEPC 0x341 113#define CSR_MCAUSE 0x342 114#define CSR_MTVAL 0x343 115#define CSR_MIP 0x344 116#define CSR_PMPCFG0 0x3a0 117#define CSR_PMPADDR0 0x3b0 |
118#define CSR_MVENDORID 0xf11 119#define CSR_MARCHID 0xf12 120#define CSR_MIMPID 0xf13 |
|
118#define CSR_MHARTID 0xf14 119 120#ifdef CONFIG_RISCV_M_MODE 121# define CSR_STATUS CSR_MSTATUS 122# define CSR_IE CSR_MIE 123# define CSR_TVEC CSR_MTVEC 124# define CSR_SCRATCH CSR_MSCRATCH 125# define CSR_EPC CSR_MEPC --- 100 unchanged lines hidden --- | 121#define CSR_MHARTID 0xf14 122 123#ifdef CONFIG_RISCV_M_MODE 124# define CSR_STATUS CSR_MSTATUS 125# define CSR_IE CSR_MIE 126# define CSR_TVEC CSR_MTVEC 127# define CSR_SCRATCH CSR_MSCRATCH 128# define CSR_EPC CSR_MEPC --- 100 unchanged lines hidden --- |