[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCHv4 42/43] plat/kvm: Implement time_block_until for arm64
Hi Wei, On 06/07/18 10:03, Wei Chen wrote: As we haven't implement full functions for timer for arm64. But this function is needed by Unikraft. So we impplement s/impplement/implement/ Cheers, a temporary function to make compiler happy. > Signed-off-by: Wei Chen <Wei.Chen@xxxxxxx> --- plat/kvm/arm/time.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plat/kvm/arm/time.c b/plat/kvm/arm/time.c index ab4968f..5c0757c 100644 --- a/plat/kvm/arm/time.c +++ b/plat/kvm/arm/time.c @@ -34,6 +34,7 @@ #include <stdlib.h> #include <uk/assert.h> #include <uk/plat/time.h> +#include <uk/arch/atomic.h>static uint64_t cntvct_at_init;static uint32_t counter_freq; @@ -125,3 +126,13 @@ void ukplat_time_fini(void) { /* TODO */ } + +long sched_have_pending_events; + +void time_block_until(__snsec until) +{ + while ((__snsec) ukplat_monotonic_clock() < until) { + if (ukarch_test_and_clr_bit(0, &sched_have_pending_events)) + break; + } +} -- Julien Grall _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |