A little bit more of multi-core support

Still not complete, as the root thread of secondary cores should not
access the console.

Signed-off-by: J. German Rivera <German.Rivera@freescale.com>