repo.or.cz
/
qemu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge tag 'qemu-macppc-20230206' of https://github.com/mcayland/qemu into staging
[qemu.git]
/
tests
/
tcg
/
x86_64
/
vsyscall.c
blob
786b047053aa0587b5f0ce1bc0454d8efb6ea090
1
#include <stdio.h>
2
#include <time.h>
3
4
#define VSYSCALL_PAGE 0xffffffffff600000
5
#define TIME_OFFSET 0x400
6
typedef
time_t
(*
time_func
)(
time_t
*);
7
8
int
main
(
void
)
9
{
10
printf
(
"%ld
\n
"
, ((
time_func
)(
VSYSCALL_PAGE
+
TIME_OFFSET
))(
NULL
));
11
return
0
;
12
}