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

* __ARM_ARCH_2__
  2013-08-08  2:08 __ARM_ARCH_2__ zhaobin xv
@ 2013-08-08  8:27 ` Russell King - ARM Linux
  2013-08-08 17:52   ` __ARM_ARCH_2__ Dave Martin
  0 siblings, 1 reply; 5+ messages in thread
From: Russell King - ARM Linux @ 2013-08-08  8:27 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Aug 08, 2013 at 10:08:02AM +0800, zhaobin xv wrote:
> 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?

You could try a few things before posting:

1. You could try grepping the kernel source to find out if anything
   in the kernel defines it.
2. You could try asking google and seeing what it returns.

Either of those will tell you that it's not defined by the kernel but by
the compiler.  For me, the first link on google explains it really well.

Thanks.

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

* __ARM_ARCH_2__
  2013-08-08  8:27 ` __ARM_ARCH_2__ Russell King - ARM Linux
@ 2013-08-08 17:52   ` Dave Martin
  2013-08-08 18:03     ` __ARM_ARCH_2__ Alexander Shiyan
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Martin @ 2013-08-08 17:52 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Aug 08, 2013 at 09:27:19AM +0100, Russell King - ARM Linux wrote:
> On Thu, Aug 08, 2013 at 10:08:02AM +0800, zhaobin xv wrote:
> > 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?
> 
> You could try a few things before posting:
> 
> 1. You could try grepping the kernel source to find out if anything
>    in the kernel defines it.
> 2. You could try asking google and seeing what it returns.
> 
> Either of those will tell you that it's not defined by the kernel but by
> the compiler.  For me, the first link on google explains it really well.

Should that code go away?  I believe we don't support v2 or v3 any more...
Did teqp actually work in 32-bit modes?

Cheers
---Dave

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

* Re: __ARM_ARCH_2__
  2013-08-08 17:52   ` __ARM_ARCH_2__ Dave Martin
@ 2013-08-08 18:03     ` Alexander Shiyan
  2013-08-08 18:23       ` __ARM_ARCH_2__ Dave Martin
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Shiyan @ 2013-08-08 18:03 UTC (permalink / raw)
  To: linux-arm-kernel

> On Thu, Aug 08, 2013 at 09:27:19AM +0100, Russell King - ARM Linux wrote:
> > On Thu, Aug 08, 2013 at 10:08:02AM +0800, zhaobin xv wrote:
> > > 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?
> > 
> > You could try a few things before posting:
> > 
> > 1. You could try grepping the kernel source to find out if anything
> >    in the kernel defines it.
> > 2. You could try asking google and seeing what it returns.
> > 
> > Either of those will tell you that it's not defined by the kernel but by
> > the compiler.  For me, the first link on google explains it really well.
> 
> Should that code go away?  I believe we don't support v2 or v3 any more...
> Did teqp actually work in 32-bit modes?

"ARM: 7770/1: remove residual ARMv2 support from decompressor":
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/arch/arm/boot/compressed/head.S?id=52c08a9e399739979027ea1e463f5529476da104

---

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

* __ARM_ARCH_2__
  2013-08-08 18:03     ` __ARM_ARCH_2__ Alexander Shiyan
@ 2013-08-08 18:23       ` Dave Martin
  0 siblings, 0 replies; 5+ messages in thread
From: Dave Martin @ 2013-08-08 18:23 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Aug 08, 2013 at 10:03:55PM +0400, Alexander Shiyan wrote:
> > On Thu, Aug 08, 2013 at 09:27:19AM +0100, Russell King - ARM Linux wrote:
> > > On Thu, Aug 08, 2013 at 10:08:02AM +0800, zhaobin xv wrote:
> > > > 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?
> > > 
> > > You could try a few things before posting:
> > > 
> > > 1. You could try grepping the kernel source to find out if anything
> > >    in the kernel defines it.
> > > 2. You could try asking google and seeing what it returns.
> > > 
> > > Either of those will tell you that it's not defined by the kernel but by
> > > the compiler.  For me, the first link on google explains it really well.
> > 
> > Should that code go away?  I believe we don't support v2 or v3 any more...
> > Did teqp actually work in 32-bit modes?
> 
> "ARM: 7770/1: remove residual ARMv2 support from decompressor":
> https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/arch/arm/boot/compressed/head.S?id=52c08a9e399739979027ea1e463f5529476da104

Job done, then

Cheers
---Dave 

^ 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).