Well,

My colleague just gave me a nasty hint.

Code CPU1 is kicked to, does switch to HYP, and executes what ROM
normally does: wait for event, checks AUX_CORE_BOOT_0 if ok - jumps to
AUX_CORE_BOOT_1. The only difference from waiting in ROM code is that
CPU1 is already in HYP.
Another difference is that executed wait/check code is placed not in ROM but in RAM. And, theoretically, could be corrupted.
Taking in account existing plans to move CPU kicking to later stages, f.e. while xen parses dt.

Sincerely,
Andrii Anisov.


On Thu, Aug 15, 2013 at 5:27 PM, Andrii Anisov <andrii.anisov@globallogic.com> wrote:
Well,

Providing mode_switch.c going to be removed, this discussion is just
theorization ;)

Sincerely,
Andrii Anisov.