Thread (3 messages) 3 messages, 3 authors, 2008-05-04

Re: how to check for "optional" ppc chip features (MSR_BE)

flat view

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2008-05-04 21:45:56

On Thu, 2008-05-01 at 22:48 -0500, Kumar Gala wrote:
Look at arch/powerpc/kernel/cputable.c to see how we handle issues  
like this.
Oh and classic pitfall: If you define a new feature bit, make sure
CPU_FTRS_POSSIBLE is updated to contain it in cputable.h

Also, It may not be totally clear, but:

PPC_FEATURE_* are exposed to userspace via AT_HWCAP

CPU_FTR_* are kernel internal (and can be used for runtime patching of
assembly code).

Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help