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

Re: [Xen-devel] [PATCH v1 3/3] xen/arm: Introduce support for Renesas R-Car Gen2 platform

I tried to add instruction: asm volatile("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq));
Also I tried to write it via Xen API: WRITE_SYSREG32(freq, CNTFRQ_EL0);

But unfortunately Xen fails on both this instructions with "Undefined instruction" exception.
You can see log in attachment.
Could you please suggest reason, why it happens?

Best regards.

Iurii KonovalenkoÂ| Senior Software Engineer
+3.8044.492.9695 M +38.099.932.2909ÂÂ

On Fri, Jan 16, 2015 at 5:32 PM, Julien Grall <julien.grall@xxxxxxxxxx> wrote:
On 16/01/15 15:29, Iurii Konovalenko wrote:
>> Is there any reason that this code diverge?
> Linux kernel 3.14-ltsi, which I used as a reference, use CNTFID0
> in file arch/arm/mach-shmobile/setup-rcar-gen2.c:
> iowrite32(freq, base + CNTFID0);

Which seems different from upstream:

1. /* Update registers with correct frequency */
2. iowrite32(freq, base + CNTFID0);
3. asm volatile("mcr p15, 0, %0, c14, c0, 0" : : "r" (freq));
5. /* make sure arch timer is started by setting bit 0 of CNTCR */
6. iowrite32(1, base + CNTCR);


Julien Grall

Attachment: renesas.log
Description: Text Data

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.