linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* __ARM_ARCH_2__
@ 2013-08-08  2:08 zhaobin xv
  2013-08-08  8:27 ` __ARM_ARCH_2__ Russell King - ARM Linux
  0 siblings, 1 reply; 5+ messages in thread
From: zhaobin xv @ 2013-08-08  2:08 UTC (permalink / raw)
  To: linux-arm-kernel

Hi

In linux/arch/arm/boot/compressed/head.S:


#ifndef __ARM_ARCH_2__
        /*
         * Booting from Angel - need to enter SVC mode and disable
         * FIQs/IRQs (numeric definitions from angel arm.h source).
         * We only do this if we were in user mode on entry.
         */
        mrs    r2, cpsr        @ get current mode
        tst    r2, #3            @ not user?
        bne    not_angel
        mov    r0, #0x17        @ angel_SWIreason_EnterSVC
        swi    0x123456        @ angel_SWI_ARM


I don't know what the"__ARM_ARCH_2__" mean?
"__ARM_ARCH_2__" is definded by gcc or definded byarmlinux?
where does it come from? what does it want to do?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-08 18:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-08  2:08 __ARM_ARCH_2__ zhaobin xv
2013-08-08  8:27 ` __ARM_ARCH_2__ Russell King - ARM Linux
2013-08-08 17:52   ` __ARM_ARCH_2__ Dave Martin
2013-08-08 18:03     ` __ARM_ARCH_2__ Alexander Shiyan
2013-08-08 18:23       ` __ARM_ARCH_2__ Dave Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).