Skip to content

Commit

Permalink
riscv: plat-virt: Rename to latest interrupt controller functions
Browse files Browse the repository at this point in the history
Rename main_init_plic() to primary_init_intc(). Rename
main_secondary_init_plic() to main_secondary_init_intc(). Also the
include path of PLIC driver header is fixed.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
  • Loading branch information
gagachang committed Jul 24, 2023
1 parent 1d7a434 commit 7551b6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/arch/riscv/plat-virt/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

#include <console.h>
#include <drivers/ns16550.h>
#include <drivers/plic.h>
#include <kernel/boot.h>
#include <kernel/tee_common_otp.h>
#include <platform_config.h>
#include <plic.h>

static struct plic_data plic_data __nex_bss;
static struct ns16550_data console_data __nex_bss;
Expand All @@ -18,14 +18,14 @@ register_ddr(DRAM_BASE, DRAM_SIZE);
register_phys_mem_pgdir(MEM_AREA_IO_NSEC, UART0_BASE,
CORE_MMU_PGDIR_SIZE);

#ifdef CFG_RISCV_PLIC
void main_init_plic(void)
#ifdef CFG_RISCV_PLIC
void primary_init_intc(void)
{
plic_init(&plic_data, PLIC_BASE);
interrupt_main_init(&plic_data.chip);
}

void main_secondary_init_plic(void)
void main_secondary_init_intc(void)
{
plic_hart_init(&plic_data);
}
Expand Down

0 comments on commit 7551b6a

Please sign in to comment.