Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / tests / tcg / x86_64 / vsyscall.c
blob786b047053aa0587b5f0ce1bc0454d8efb6ea090
1 #include <stdio.h>
2 #include <time.h>
4 #define VSYSCALL_PAGE 0xffffffffff600000
5 #define TIME_OFFSET 0x400
6 typedef time_t (*time_func)(time_t *);
8 int main(void)
10 printf("%ld\n", ((time_func)(VSYSCALL_PAGE + TIME_OFFSET))(NULL));
11 return 0;