arch: qemu-rv: Refactor the entry point name for BUILD_KERNEL

Summary:
- This commit refactors the entry point name for BUILD_KERNEL
  to avoid misunderstanding the name

Impact:
- None

Testing:
- Tested with rv-virt:ksmp64

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2022-10-09 11:40:37 +09:00 committed by Xiang Xiao
parent 1297c23e7d
commit cb73e9a67d
2 changed files with 7 additions and 7 deletions

View File

@ -105,11 +105,7 @@ __start:
/* Jump to qemu_rv_start */
#ifdef CONFIG_ARCH_USE_S_MODE
jal x1, qemu_rv_start_s
#else
jal x1, qemu_rv_start
#endif
/* We shouldn't return from _start */

View File

@ -95,7 +95,11 @@ uintptr_t g_idle_topstack = QEMU_RV_IDLESTACK_TOP;
* Name: qemu_rv_start
****************************************************************************/
#ifdef CONFIG_BUILD_KERNEL
void qemu_rv_start_s(int mhartid)
#else
void qemu_rv_start(int mhartid)
#endif
{
/* Configure FPU */
@ -147,10 +151,10 @@ cpux:
#ifdef CONFIG_BUILD_KERNEL
/****************************************************************************
* Name: qemu_rv_start_s
* Name: qemu_rv_start
****************************************************************************/
void qemu_rv_start_s(int mhartid)
void qemu_rv_start(int mhartid)
{
/* NOTE: still in M-mode */
@ -202,7 +206,7 @@ void qemu_rv_start_s(int mhartid)
/* Set mepc to the entry */
WRITE_CSR(mepc, (uintptr_t)qemu_rv_start);
WRITE_CSR(mepc, (uintptr_t)qemu_rv_start_s);
/* Set a0 to mhartid explicitly and enter to S-mode */