This commit is contained in:
wty 2024-06-12 03:03:25 -07:00
parent bddf0012df
commit 686edfe55b
5 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@ export CROSS_COMPILE ?= aarch64-none-elf-
export DEVICE = -mtune=cortex-a55 -ffreestanding -fno-common -fno-stack-protector -fno-pie -no-pie export DEVICE = -mtune=cortex-a55 -ffreestanding -fno-common -fno-stack-protector -fno-pie -no-pie
export CFLAGS := $(DEVICE) -Wall -Werror -O0 -g -fno-omit-frame-pointer -fPIC export CFLAGS := $(DEVICE) -Wall -Werror -O0 -g -fno-omit-frame-pointer -fPIC
# export AFLAGS := -c $(DEVICE) -x assembler-with-cpp -D__ASSEMBLY__ -gdwarf-2 # export AFLAGS := -c $(DEVICE) -x assembler-with-cpp -D__ASSEMBLY__ -gdwarf-2
export LFLAGS := $(DEVICE) -Wl,-T -Wl,$(KERNEL_ROOT)/hardkernel/arch/arm/armv8-a/cortex-a55/preboot_for_3568/nxp_ls1028.lds -Wl,--start-group,-lgcc,-lc,--end-group export LFLAGS := $(DEVICE) -Wl,-T -Wl,$(KERNEL_ROOT)/hardkernel/arch/arm/armv8-a/cortex-a55/preboot_for_3568/3568.lds -Wl,--start-group,-lgcc,-lc,--end-group
export CXXFLAGS := export CXXFLAGS :=
export DEFINES := -DHAVE_CCONFIG_H -DCHIP_LS1028 export DEFINES := -DHAVE_CCONFIG_H -DCHIP_LS1028

View File

@ -8,7 +8,7 @@ File name: cortexA55.S
Description: This file contains cortexA9 functions Description: This file contains cortexA9 functions
Others: Others:
History: History:
1. Date: 202-05-08 1. Date: 2024-05-08
Author: AIIT XUOS Lab Author: AIIT XUOS Lab
Modification: Modification:
1. No modifications 1. No modifications
@ -32,6 +32,6 @@ psci_call:
# ------------------------------------------------------------ # ------------------------------------------------------------
# End of cortexA72.s # End of cortexA55.s
# ------------------------------------------------------------ # ------------------------------------------------------------
.end .end

View File

@ -29,7 +29,7 @@
*/ */
/** /**
* @file cortex_a55.h * @file cortex_a55.h
* @brief some cortex A72 core functions * @brief some cortex A55 core functions
* @version 1.0 * @version 1.0
* @author AIIT XUOS Lab * @author AIIT XUOS Lab
* @date 2024.04.24 * @date 2024.04.24
@ -37,7 +37,7 @@
/************************************************* /*************************************************
File name: cortex_a55.h File name: cortex_a55.h
Description: some cortex A72 core functions Description: some cortex A55 core functions
Others: Others:
History: History:
Author: AIIT XUOS Lab Author: AIIT XUOS Lab
@ -45,8 +45,8 @@ Modification:
1. No modifications 1. No modifications
*************************************************/ *************************************************/
#if !defined(__CORTEX_A72_H__) #if !defined(__CORTEX_A55_H__)
#define __CORTEX_A72_H__ #define __CORTEX_A55_H__
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
@ -231,4 +231,4 @@ void scu_secure_invalidate(unsigned int cpu, unsigned int ways);
} }
#endif #endif
#endif //__CORTEX_A72_H__ #endif //__CORTEX_A55_H__

View File

@ -33,7 +33,7 @@ Modification:
#define ARCH_BIT 64 #define ARCH_BIT 64
/* A72 physical memory layout */ /* A55 physical memory layout */
#define PHY_MEM_BASE (0x0000000010000000ULL) #define PHY_MEM_BASE (0x0000000010000000ULL)
#define PHY_USER_FREEMEM_BASE (0x0000000030000000ULL) #define PHY_USER_FREEMEM_BASE (0x0000000030000000ULL)
#define PHY_USER_FREEMEM_TOP (0x0000000040000000ULL) #define PHY_USER_FREEMEM_TOP (0x0000000040000000ULL)