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

Re: [Xen-devel] [PATCH] xen/arm: Support kick cpus and switch to hypervisor for the OMAP5

On Aug 15, 2013, at 5:34 PM, Andrii Anisov <andrii.anisov@xxxxxxxxxxxxxxx> 

> Chen,
> Could you please explain how this code switches to hyp mode?
> I do not see related code.

The actual mode switch codes is in the end of mode_switch.sï

        mrs     r0, cpsr        /* Copy the CPSR */
        add     r0, r0, #0x4    /* 0x16 (Monitor) -> 0x1a (Hyp) */
        msr     spsr_cxsf, r0   /* into the SPSR */

Hmmm, I think my patch name should be more accurate. It mainly added
OMAP5 support in "enter_hyp_mode" routine, which actually makes it
set cntfrq of arch_timer properly in secure mode.



Xen-devel mailing list



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