Re: Qemu atags passing in register.

2012-02-06 Thread d...@ucore.info
On Mon, Feb 6, 2012 at 6:48 PM, d...@ucore.info wrote: > In the sourcode (current release) I couldn't find any place where any > register except PC is being modified. While looking for some data to paste here, I've notice that the pointers should be set by "the smallest b

Re: Qemu atags passing in register.

2012-02-06 Thread d...@ucore.info
On Mon, Feb 6, 2012 at 5:35 PM, Peter Maydell wrote: > No, qemu will correctly pass the atags in r2 if it is booting a linux > kernel (ie if you pass it a non ELF file via the -kernel argument). > Otherwise we wouldn't be able to boot Linux. > How are you starting qemu ? Well it's a bit complex:

Qemu atags passing in register.

2012-02-06 Thread d...@ucore.info
Hi, I'm doing some tricks with Linux kernel and I'm dependent on bootloader atags passing. On PandaBoard the u-boot is always passing DTF/Atags pointer in r2 register, and I'm kind of depending on it. I need to emulate this behavior by -initrd qemu's argument. However it seems that qemu-system-ar