mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
test/driver_time: fix page-fault of ARMv8a variant
The get_cycles() call within the test doesn't apply to RDTSC access when running on ARM but to arch_timer_read_counter, which is an empty function pointer. By setting it to a function that returns Genode::Trace::timestamp() we can enable the test for ARM. Issue #4775
This commit is contained in:
parent
2269f42e17
commit
0bc5bcce4a
@ -73,11 +73,6 @@ int _printk_deferred(const char * fmt,...)
|
||||
}
|
||||
|
||||
|
||||
#include <clocksource/arm_arch_timer.h>
|
||||
|
||||
u64 (*arch_timer_read_counter)(void);
|
||||
|
||||
|
||||
#include <linux/context_tracking_irq.h>
|
||||
|
||||
noinstr void ct_irq_enter(void)
|
||||
|
@ -0,0 +1,6 @@
|
||||
#include <clocksource/arm_arch_timer.h>
|
||||
|
||||
extern unsigned long long lx_emul_timestamp(void);
|
||||
|
||||
u64 (*arch_timer_read_counter)(void) = lx_emul_timestamp;
|
||||
|
@ -1,5 +1,7 @@
|
||||
REQUIRES := arm_64
|
||||
|
||||
SRC_C += lx_emul/shadow/arch/arm64/kernel/smp.c
|
||||
SRC_CC += timestamp.cc
|
||||
SRC_C += lx_emul.c
|
||||
SRC_C += lx_emul/shadow/arch/arm64/kernel/smp.c
|
||||
|
||||
include $(PRG_DIR)/../../target.inc
|
||||
|
@ -0,0 +1,7 @@
|
||||
#include <trace/timestamp.h>
|
||||
|
||||
extern "C" unsigned long long lx_emul_timestamp();
|
||||
extern "C" unsigned long long lx_emul_timestamp()
|
||||
{
|
||||
return Genode::Trace::timestamp();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user