From ca35c72d020c057b87bc1c4510340017a4da7bd0 Mon Sep 17 00:00:00 2001 From: songyanguang <345810377@qq.com> Date: Wed, 22 Jan 2025 09:42:33 +0800 Subject: [PATCH] Modify riscv csr --- .../arch/riscv/rv64gc/include/asm/csr.h | 3 ++- .../rv64gc/preboot_for_jh7110/include/autoconf.h | 15 --------------- 2 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 Ubiquitous/XiZi_AIoT/hardkernel/arch/riscv/rv64gc/preboot_for_jh7110/include/autoconf.h diff --git a/Ubiquitous/XiZi_AIoT/hardkernel/arch/riscv/rv64gc/include/asm/csr.h b/Ubiquitous/XiZi_AIoT/hardkernel/arch/riscv/rv64gc/include/asm/csr.h index 0f45549da..ad0e09892 100644 --- a/Ubiquitous/XiZi_AIoT/hardkernel/arch/riscv/rv64gc/include/asm/csr.h +++ b/Ubiquitous/XiZi_AIoT/hardkernel/arch/riscv/rv64gc/include/asm/csr.h @@ -6,11 +6,12 @@ #ifndef _ASM_RISCV_CSR_H #define _ASM_RISCV_CSR_H -#include "autoconf.h" #include #include +#define CONFIG_64BIT 1 + /* Status register flags */ #define SR_SIE _AC(0x00000002, UL) /* Supervisor Interrupt Enable */ #define SR_MIE _AC(0x00000008, UL) /* Machine Interrupt Enable */ diff --git a/Ubiquitous/XiZi_AIoT/hardkernel/arch/riscv/rv64gc/preboot_for_jh7110/include/autoconf.h b/Ubiquitous/XiZi_AIoT/hardkernel/arch/riscv/rv64gc/preboot_for_jh7110/include/autoconf.h deleted file mode 100644 index 0e98745f8..000000000 --- a/Ubiquitous/XiZi_AIoT/hardkernel/arch/riscv/rv64gc/preboot_for_jh7110/include/autoconf.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef _AUTOCONF_H -#define _AUTOCONF_H - -#define CONFIG_64BIT 1 -#define CONFIG_MMU 1 -#define CONFIG_PHYS_ADDR_T_64BIT 1 -#define CONFIG_PAGE_OFFSET 0xffffffe000000000 -#define CONFIG_VA_BITS 39 - - -#define THREAD_SIZE (512 << 2) -#define KERNEL_MAP_VIRT_ADDR 0 /* offsetof(struct kernel_mapping, virt_addr) */ -#define TASK_TI_CPU 32 /* offsetof(struct task_struct, thread_info.cpu) */ - -#endif /* _AUTOCONF_H */