[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Posix timer syscalls ; dealing with the timer_t type
From: |
Erik de Castro Lopo |
Subject: |
[Qemu-devel] Posix timer syscalls ; dealing with the timer_t type |
Date: |
Thu, 30 Aug 2012 22:30:30 +1000 |
Hi all,
I'm working on implementing Posix timers in linux-user.
I'm having trouble figuring out how to handle the timer_t type.
Consider the following code with say 32 bit ARM being emulated
on 64 bit x86-64:
timer_t timerid;
err = timer_create(clockid, &sev, &timerid);
err = timer_gettime(timerid, &curr);
The issue is that memory for the timer_t value in the 32 bit
target is alloacted on the tack (where the timer_t is 4 bytes)
but the value provided by the 64 bit host where the timer_t is
8 bytes.
Any suggestions on dealing with this?
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
- [Qemu-devel] Posix timer syscalls ; dealing with the timer_t type,
Erik de Castro Lopo <=