Received: from eggs.gnu.org ([208.118.235.92]:47386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T73tT-00030u-Uj for qemu-devel@nongnu.org; Thu, 30 Aug 2012 08:30:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T73tO-0006ga-UX for qemu-devel@nongnu.org; Thu, 30 Aug 2012 08:30:43 -0400 Received: from hendrix.mega-nerd.net ([203.206.230.162]:39714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T73tO-0006X0-J7 for qemu-devel@nongnu.org; Thu, 30 Aug 2012 08:30:38 -0400 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id 30D10106DE3 for ; Thu, 30 Aug 2012 22:30:30 +1000 (EST) Date: Thu, 30 Aug 2012 22:30:30 +1000 From: Erik de Castro Lopo Message-Id: <20120830223030.6d2582053b16583b8093a041@mega-nerd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Posix timer syscalls ; dealing with the timer_t type Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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/