]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[S390] compile fix for latest binutils
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 4 Apr 2011 07:43:33 +0000 (09:43 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Mon, 4 Apr 2011 07:43:33 +0000 (09:43 +0200)
The latest binutils won't accept the stfl instruction with march=g5
which is the correct behaviour. Unfortunately head.S is assembled
with -march=g5 even if the target cpu is z900 or later. To get
31-bit kernels compiled again the easiest fix is to use the .insn
notation for the stfl instruction in head.S.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/head.S

index 7061398341d59ac21ffab3affb29216ca973460e..fb317bf2c3780df747180766bd76fa9753f44e81 100644 (file)
@@ -460,7 +460,7 @@ startup:
 #ifndef CONFIG_MARCH_G5
        # check capabilities against MARCH_{G5,Z900,Z990,Z9_109,Z10}
        xc      __LC_STFL_FAC_LIST(8),__LC_STFL_FAC_LIST
-       stfl    __LC_STFL_FAC_LIST      # store facility list
+       .insn   s,0xb2b10000,__LC_STFL_FAC_LIST # store facility list
        tm      __LC_STFL_FAC_LIST,0x01 # stfle available ?
        jz      0f
        la      %r0,0