Jelajahi Sumber

[libcpu/aarch64] mmu.c增加mmu_info声明;
psci结构体调整为psci_ops_t;
增加版权头;

wangxiaoyao 3 tahun lalu
induk
melakukan
c45380e854

+ 2 - 0
libcpu/aarch64/common/mmu.h

@@ -137,4 +137,6 @@ void rt_mm_unlock(void);
 
 void kernel_mmu_switch(unsigned long tbl);
 
+extern rt_mmu_info mmu_info;
+
 #endif

+ 2 - 2
libcpu/aarch64/common/psci.c

@@ -41,7 +41,7 @@
 #ifdef RT_USING_FDT
 #include "dtb_node.h"
 
-struct psci_operations psci_ops;
+struct psci_ops_t psci_ops;
 
 #if __SIZE_WIDTH__ == 64
 #define PSCI_FN_NATIVE(version, name) PSCI_##version##_FN64_##name
@@ -165,7 +165,7 @@ static rt_uint32_t psci_0_2_get_version(void)
 
 static void psci_0_2_set_basic_ops()
 {
-    psci_ops = (struct psci_operations){
+    psci_ops = (struct psci_ops_t){
         .get_version = psci_0_2_get_version, 
 
         // followings API are v0.1 compatible

+ 2 - 2
libcpu/aarch64/common/psci_api.h

@@ -15,7 +15,7 @@
 #include "psci_api.h"
 
 /** generic psci ops supported v0.1 v0.2 v1.0 v1.1 */
-struct psci_operations
+struct psci_ops_t
 {
     uint32_t (*get_version)(void);
     int32_t (*cpu_suspend)(uint32_t state, unsigned long entry_point);
@@ -24,7 +24,7 @@ struct psci_operations
     int32_t (*migrate)(unsigned long cpuid);
 };
 
-extern struct psci_operations psci_ops;
+extern struct psci_ops_t psci_ops;
 
 extern int psci_init(void);
 

+ 8 - 1
libcpu/aarch64/common/smccc.S

@@ -1,4 +1,11 @@
-
+/*
+ * Copyright (c) 2006-2022, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date           Author       Notes
+ */
 /**
  * SMCCC v0.2
  * ARM DEN0028E chapter 2.6