-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>
- Loading branch information
1 parent
dae2ff3
commit dd78c16
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright 2023 | ||
* | ||
* SPDX-License-Identifier: BSD-2-Clause | ||
*/ | ||
|
||
/* This file contains tests related to vCPU syscalls. */ | ||
|
||
#include <stdio.h> | ||
#include <sel4/sel4.h> | ||
#include <sel4test/testutil.h> | ||
#include <sel4test/macros.h> | ||
|
||
#include "../helpers.h" | ||
|
||
#ifdef CONFIG_ARM_HYPERVISOR_SUPPORT | ||
int test_vcpu_inject_without_tcb(env_t env) | ||
{ | ||
vka_object_t vcpu; | ||
int error = vka_alloc_vcpu(&env->vka, &vcpu); | ||
|
||
error = seL4_ARM_VCPU_InjectIRQ(vcpu.cptr, 0, 0, 0, 0); | ||
// TODO: check for error | ||
} | ||
DEFINE_TEST(VCPU0001, "Inject IRQ without TCB associated with vCPU", test_vcpu_inject_without_tcb, true) | ||
#endif |