[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Syscall 269

From: James Pellow
Subject: Re: [Qemu-devel] Syscall 269
Date: Thu, 18 Nov 2004 10:24:24 -0800
User-agent: KMail/1.7.1

Yes, I thought about that, and realized I wouldn't have a problem in my case.  
I'll take a closer look at the syscall.c file and see how that was done for 
other syscalls, and see if I can get a better patch put together.  Thanks for 
the reply.


On Thursday 18 November 2004 05:03 am, you wrote:
> On Thursday 18 November 2004 09:38, James Pellow wrote:
> > Hi All,
> >
> > I am trying to chroot to a gentoo flavor of arm linux on my AMD
> > tbird-1.4GHz. I have set up binfmt_misc and qemu to allow me to do the
> > chroot, and all seems to be working well.  Now I wanted to emerge some
> > stuff, and I get the following message:
> >
> > qemu: Unsupported syscall: 269.
> >
> > Looking at the arm linux kernel source, I see that 269 is utimes. 
> > Looking at the source code for qemu it seems that all I have to do is to
> > add a define for TARGET_NR_utimes in all linux-user/*/syscall_nr.h and
> > then add a new case in linux-user/syscall.c.
> >
> > So, I gave it a shot.  The patch is at the bottom of this message.  This
> > is the first time I have looked at the qemu sources, so I am likely
> > missing something, but the patch does seem to allow emerge to work
> > properly under gentoo.  If a correct implementation requires more work, I
> > am happy to do that too, just let me know.  BTW, I am not subscribed to
> > this list to please CC me.
> You also need to do proper 32/64bit and big/little endian conversion of
> struct timeval. It happens to work in your case because arm-linux and
> i686-linux both use the same word size and endianness.
> Paul

James A. Pellow, President
Alent Design Solutions
(509) 526-0682

reply via email to

[Prev in Thread] Current Thread [Next in Thread]