Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.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;