Fixed time processing.

- arm64: Get TSC corresponding to boot time from IHK.

- x86_64: Calculate the current time using vdso.

Refs: #1186
Fujitsu: POSTK_DEBUG_ARCH_DEP_52
Change-Id: I293ba4bbe5390d50dea44b8a5b7471f59237daff
This commit is contained in:
Tomoki Shirasawa
2019-02-17 16:37:29 +09:00
committed by Masamichi Takagi
parent 07aa96ef95
commit 5bc54a3bbe
15 changed files with 471 additions and 88 deletions

13
test/issues/1186/Makefile Normal file
View File

@@ -0,0 +1,13 @@
TARGET=C1186
CC=gcc
all:: $(TARGET)
C1186: C1186.c
$(CC) -o C1186 C1186.c
test:: $(TARGET)
sh ./C1186.sh
clean::
rm -f *.o $(TARGET)