Home
last modified time | relevance | path

Searched refs:hartid (Results 1 – 6 of 6) sorted by relevance

/optee_os/core/arch/riscv/kernel/
H A Dsbi.c58 int sbi_hsm_hart_start(uint32_t hartid, paddr_t start_addr, unsigned long arg) in sbi_hsm_hart_start() argument
62 ret = sbi_ecall(SBI_EXT_HSM, SBI_EXT_HSM_HART_START, hartid, start_addr, in sbi_hsm_hart_start()
75 int sbi_hsm_hart_get_status(uint32_t hartid, enum sbi_hsm_hart_state *status) in sbi_hsm_hart_get_status() argument
79 ret = sbi_ecall(SBI_EXT_HSM, SBI_EXT_HSM_HART_GET_STATUS, hartid); in sbi_hsm_hart_get_status()
H A Dboot.c73 uint32_t hartid = 0; in start_secondary_cores() local
81 hartid = hartids[i]; in start_secondary_cores()
83 if (hartid == curr_hartid) in start_secondary_cores()
86 rc = sbi_hsm_hart_get_status(hartid, &status); in start_secondary_cores()
95 DMSG("Bringing up secondary hart%"PRIu32, hartid); in start_secondary_cores()
97 rc = sbi_hsm_hart_start(hartid, start_addr, 0 /* unused */); in start_secondary_cores()
99 EMSG("Error starting secondary hart%"PRIu32, hartid); in start_secondary_cores()
/optee_os/core/drivers/
H A Daplic_direct.c47 size_t hartid = get_core_pos(); in aplic_get_idc_base() local
49 return aplic->aplic_base + APLIC_IDC_BASE + hartid * APLIC_IDC_SIZE; in aplic_get_idc_base()
101 size_t hartid = get_core_pos(); in aplic_op_configure() local
109 aplic_set_target(aplic, it, hartid, prio); in aplic_op_configure()
H A Daplic_msi.c78 size_t hartid = get_core_pos(); in aplic_op_configure() local
87 aplic_set_target(aplic, it, hartid, 0, it); in aplic_op_configure()
H A Dplic.c73 size_t hartid = get_core_pos(); in plic_get_context() local
76 return hartid * 2 + smode; in plic_get_context()
/optee_os/core/arch/riscv/include/
H A Dsbi.h109 int sbi_hsm_hart_start(uint32_t hartid, paddr_t start_addr, unsigned long arg);
110 int sbi_hsm_hart_get_status(uint32_t hartid, enum sbi_hsm_hart_state *status);