Abner Chang
Sent: Tuesday, March 1, 2022 5:56 PM
To: Ni, Ray ; Kinney, Michael D ;
Leif Lindholm ; devel@edk2.groups.io ;
LiChao
Cc: Andrew Fish ; Sami Mujawar ;
Schaefer, Daniel (ROM Janitor) ; Sunil V L
Subject: Re: [edk2-devel] RFC: UefiCpuPkg for all processor archs
Hi Ray,
RISC-V
Hi Ray,
RISC-V doesn't have the similar functions as those are provided in
BaseUefiCpuLib.c. In this case, what we can do is just leverage the library
class but different implementation for archs?
At least we don't need another library class for RISC-V. We can have the common
source file if all
Abner,
UefiCpuPkg\SecCore\SecCoreNative.inf is a module that might not depend on X86.
It assumes the UefiCpuPkg/ResetVector inits the CPU well.
UefiCpuPKg/BaseUefiCpuLib
1. Rename BaseUefiCpuLib.c to BaseUefiCpuLibIa32X64.c
BaseUefiCpuLibRiscV64.c for RISC-V arch and assembly code under /RISCV