Commit:     4f5fa2fb1259f506d20e8af447117ec3ec426a53
Parent:     b4aea36b7956eeebfc56314ce0944db1441255ce
Author:     Anton Blanchard <[EMAIL PROTECTED]>
AuthorDate: Tue Mar 20 14:29:54 2007 -0500
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Mar 22 15:01:43 2007 +1100

    [POWERPC] Bypass hcall stats until cpu features have run
    I noticed that we execute hcalls before cpu feature code has run (eg
    for setting up the bolted kernel region).  This means that we may be
    executing code that is not appropriate for the processor we have.
    Create an unconditional branch that we nop out all the time to fix this.
    Signed-off-by: Anton Blanchard <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 arch/powerpc/platforms/pseries/hvCall.S |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/platforms/pseries/hvCall.S 
index 1501b0a..c1427b3 100644
--- a/arch/powerpc/platforms/pseries/hvCall.S
+++ b/arch/powerpc/platforms/pseries/hvCall.S
  * postcall is performed immediately before function return which
- * allows liberal use of volatile registers.
+ * allows liberal use of volatile registers.  We branch around this
+ * in early init (eg when populating the MMU hashtable) by using an
+ * unconditional cpu feature.
 #define HCALL_INST_POSTCALL                                    \
+BEGIN_FTR_SECTION;                                             \
+       b       1f;                                             \
+END_FTR_SECTION(0, 1);                                         \
        ld      r4,STK_PARM(r3)(r1);    /* validate opcode */   \
        cmpldi  cr7,r4,MAX_HCALL_OPCODE;                        \
        bgt-    cr7,1f;                                         \
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to