diff --git a/src/kernel/arch/aarch64/include/cpu/cpu.hpp b/src/kernel/arch/aarch64/include/cpu/cpu.hpp index 0650d97d..7f1cfa21 100644 --- a/src/kernel/arch/aarch64/include/cpu/cpu.hpp +++ b/src/kernel/arch/aarch64/include/cpu/cpu.hpp @@ -23,8 +23,8 @@ #include #include "kernel_log.hpp" +#include "regs.hpp" #include "sk_cstdio" #include "sk_iostream" -#include "sr.hpp" #endif // SIMPLEKERNEL_SRC_KERNEL_ARCH_AARCH64_INCLUDE_CPU_CPU_HPP_ diff --git a/src/kernel/arch/aarch64/include/cpu/sr.hpp b/src/kernel/arch/aarch64/include/cpu/regs.hpp similarity index 93% rename from src/kernel/arch/aarch64/include/cpu/sr.hpp rename to src/kernel/arch/aarch64/include/cpu/regs.hpp index eccd8a7a..aef82c0b 100644 --- a/src/kernel/arch/aarch64/include/cpu/sr.hpp +++ b/src/kernel/arch/aarch64/include/cpu/regs.hpp @@ -1,7 +1,7 @@ /** - * @file sr.hpp - * @brief aarch64 sr 相关定义 + * @file regs.hpp + * @brief aarch64 寄存器相关定义 * @author Zone.N (Zone.Niuzh@hotmail.com) * @version 1.0 * @date 2024-03-05 @@ -14,8 +14,8 @@ * */ -#ifndef SIMPLEKERNEL_SRC_KERNEL_ARCH_AARCH64_INCLUDE_CPU_SR_HPP_ -#define SIMPLEKERNEL_SRC_KERNEL_ARCH_AARCH64_INCLUDE_CPU_SR_HPP_ +#ifndef SIMPLEKERNEL_SRC_KERNEL_ARCH_AARCH64_INCLUDE_CPU_REGS_HPP_ +#define SIMPLEKERNEL_SRC_KERNEL_ARCH_AARCH64_INCLUDE_CPU_REGS_HPP_ #include #include @@ -166,4 +166,4 @@ struct AllXreg { }; // namespace cpu -#endif // SIMPLEKERNEL_SRC_KERNEL_ARCH_AARCH64_INCLUDE_CPU_SR_HPP_ +#endif // SIMPLEKERNEL_SRC_KERNEL_ARCH_AARCH64_INCLUDE_CPU_REGS_HPP_ diff --git a/src/kernel/arch/riscv64/include/cpu/cpu.hpp b/src/kernel/arch/riscv64/include/cpu/cpu.hpp index 88f27f72..7eebf372 100644 --- a/src/kernel/arch/riscv64/include/cpu/cpu.hpp +++ b/src/kernel/arch/riscv64/include/cpu/cpu.hpp @@ -22,8 +22,8 @@ #include #include -#include "csr.hpp" #include "kernel_log.hpp" +#include "regs.hpp" #include "sk_cstdio" #include "sk_iostream" diff --git a/src/kernel/arch/riscv64/include/cpu/csr.hpp b/src/kernel/arch/riscv64/include/cpu/regs.hpp similarity index 99% rename from src/kernel/arch/riscv64/include/cpu/csr.hpp rename to src/kernel/arch/riscv64/include/cpu/regs.hpp index 7ac8e68c..73f6f22c 100644 --- a/src/kernel/arch/riscv64/include/cpu/csr.hpp +++ b/src/kernel/arch/riscv64/include/cpu/regs.hpp @@ -1,7 +1,7 @@ /** - * @file csr.hpp - * @brief riscv64 csr 相关定义 + * @file regs.hpp + * @brief riscv64 寄存器相关定义 * @author Zone.N (Zone.Niuzh@hotmail.com) * @version 1.0 * @date 2024-03-05 @@ -14,8 +14,8 @@ * */ -#ifndef SIMPLEKERNEL_SRC_KERNEL_ARCH_RISCV64_INCLUDE_CPU_CSR_HPP_ -#define SIMPLEKERNEL_SRC_KERNEL_ARCH_RISCV64_INCLUDE_CPU_CSR_HPP_ +#ifndef SIMPLEKERNEL_SRC_KERNEL_ARCH_RISCV64_INCLUDE_CPU_REGS_HPP_ +#define SIMPLEKERNEL_SRC_KERNEL_ARCH_RISCV64_INCLUDE_CPU_REGS_HPP_ #include #include @@ -1611,4 +1611,4 @@ class AllCsr { }; // namespace cpu -#endif // SIMPLEKERNEL_SRC_KERNEL_ARCH_RISCV64_INCLUDE_CPU_CSR_HPP_ +#endif // SIMPLEKERNEL_SRC_KERNEL_ARCH_RISCV64_INCLUDE_CPU_REGS_HPP_ diff --git a/src/kernel/arch/x86_64/include/cpu/cpu.hpp b/src/kernel/arch/x86_64/include/cpu/cpu.hpp index 06b89907..c4d045ef 100644 --- a/src/kernel/arch/x86_64/include/cpu/cpu.hpp +++ b/src/kernel/arch/x86_64/include/cpu/cpu.hpp @@ -22,8 +22,8 @@ #include #include -#include "cr.hpp" #include "kernel_log.hpp" +#include "regs.hpp" #include "sk_cstdio" #include "sk_iostream" diff --git a/src/kernel/arch/x86_64/include/cpu/cr.hpp b/src/kernel/arch/x86_64/include/cpu/regs.hpp similarity index 99% rename from src/kernel/arch/x86_64/include/cpu/cr.hpp rename to src/kernel/arch/x86_64/include/cpu/regs.hpp index f9af6547..0b5fc204 100644 --- a/src/kernel/arch/x86_64/include/cpu/cr.hpp +++ b/src/kernel/arch/x86_64/include/cpu/regs.hpp @@ -1,7 +1,7 @@ /** - * @file cr.hpp - * @brief x86_64 cr 相关定义 + * @file regs.hpp + * @brief x86_64 寄存器相关定义 * @author Zone.N (Zone.Niuzh@hotmail.com) * @version 1.0 * @date 2024-03-05 @@ -14,8 +14,8 @@ * */ -#ifndef SIMPLEKERNEL_SRC_KERNEL_ARCH_X86_64_INCLUDE_CPU_CR_HPP_ -#define SIMPLEKERNEL_SRC_KERNEL_ARCH_X86_64_INCLUDE_CPU_CR_HPP_ +#ifndef SIMPLEKERNEL_SRC_KERNEL_ARCH_X86_64_INCLUDE_CPU_REGS_HPP_ +#define SIMPLEKERNEL_SRC_KERNEL_ARCH_X86_64_INCLUDE_CPU_REGS_HPP_ #include #include @@ -1773,4 +1773,4 @@ struct AllCr { }; // namespace cpu -#endif // SIMPLEKERNEL_SRC_KERNEL_ARCH_X86_64_INCLUDE_CPU_CR_HPP_ +#endif // SIMPLEKERNEL_SRC_KERNEL_ARCH_X86_64_INCLUDE_CPU_REGS_HPP_