Skip to content

Commit

Permalink
smc_cap: Register camkes get_smc_cap callback
Browse files Browse the repository at this point in the history
Signed-off-by: Robbie VanVossen <[email protected]>
  • Loading branch information
Alex Pavey authored and Furao committed Aug 30, 2023
1 parent 280208d commit 785b2ab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/VM_Arm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ seL4_CPtr camkes_get_smmu_cb_cap();
seL4_CPtr camkes_get_smmu_sid_cap();
#endif

#ifdef CONFIG_ALLOW_SMC_CALLS
seL4_CPtr camkes_get_smc_cap(seL4_Word smc_call);
#endif

int get_crossvm_irq_num(void)
{
return free_plat_interrupts[0];
Expand Down Expand Up @@ -1233,6 +1237,11 @@ static int main_continued(void)
err = vm_create_default_irq_controller(&vm);
assert(!err);

#ifdef CONFIG_ALLOW_SMC_CALLS
err = vm_register_get_smc_cap_callback(&vm, camkes_get_smc_cap);
assert(!err);
#endif

/* Create CPUs and DTB node */
for (int i = 0; i < NUM_VCPUS; i++) {
vm_vcpu_t *new_vcpu = create_vmm_plat_vcpu(&vm, VM_PRIO - 1);
Expand Down

0 comments on commit 785b2ab

Please sign in to comment.