[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.02.1112222122100.2907@xanadu.home>
Date: Thu, 22 Dec 2011 21:26:47 -0500 (EST)
From: Nicolas Pitre <nicolas.pitre@...aro.org>
To: David Laight <David.Laight@...LAB.COM>
cc: Dave Martin <dave.martin@...aro.org>,
Mircea Gherzan <mgherzan@...il.com>, netdev@...r.kernel.org,
linux@....linux.org.uk, linux-arm-kernel@...ts.infradead.org
Subject: RE: [PATCH v2] ARM: net: JIT compiler for packet filters
On Thu, 22 Dec 2011, David Laight wrote:
> > In principle, the condition could be __LINUX_ARM_ARCH__ < 5, since the
> > bx instruction is guaranteed to be available on all ARMv5 CPUs and
> > later (ARMv5T is not required).
>
> Can't this code look at the actual cpu being used, and
> generate the relevant 'return' instruction?
> (Instead of trying to use some compile-time value.)
There is really no point doing so. We intend to ultimately have a
kernel that may support ARMv5 and lower, and another kernel to support
ARMv6 and ARMv7. So in a given context, either bx is always available
(ARMv6+) or never required (ARMv5-).
Nicolas
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists