mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-11 05:55:48 +00:00
Authors of this port:
Petr Pavlu setup@dagobah.cz
Ivo Raisr ivosh@ivosh.net
Theo Schlossnagle theo@omniti.com
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
31 lines
555 B
C
31 lines
555 B
C
/* Test for get_zone_offset fasttrap. */
|
|
|
|
#include "config.h"
|
|
#include <stdio.h>
|
|
#include <sys/time.h>
|
|
#include <sys/trap.h>
|
|
|
|
int main(void)
|
|
{
|
|
#if defined(VGP_x86_solaris)
|
|
__asm__ ( \
|
|
"movl %[FASTTRAP],%%eax\n"
|
|
"int $0xd2\n"
|
|
:
|
|
: [FASTTRAP] "i" (T_GETZONEOFFSET)
|
|
: "eax", "edx", "cc");
|
|
#elif defined(VGP_amd64_solaris)
|
|
__asm__ ( \
|
|
"movq %[FASTTRAP],%%rax\n"
|
|
"int $0xd2\n"
|
|
:
|
|
: [FASTTRAP] "i" (T_GETZONEOFFSET)
|
|
: "rax", "rdx", "cc");
|
|
#else
|
|
# error "Unknown platform"
|
|
#endif
|
|
|
|
return 0;
|
|
}
|
|
|