summaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-11-08 18:10:59 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-11-09 16:55:22 -0600
commit370b8866871b5c2cf3286afbf19fc90282cb3508 (patch)
tree16960e7608b33ff081c54ed41dbe8d6eb597c368 /asm
parent1e6cfd7d0459b7af0d5766b7f2b514d05714f92e (diff)
downloadtalos-skiboot-370b8866871b5c2cf3286afbf19fc90282cb3508.tar.gz
talos-skiboot-370b8866871b5c2cf3286afbf19fc90282cb3508.zip
asm/head: Loop after attn
We use the attn instruction to raise an error in early boot if OPAL don't recognise the PVR. It's possible for hostboot to disable the attn instruction before entering OPAL so add an extra busy loop after the attn to prevent attempting to boot on an unknown processor. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'asm')
-rw-r--r--asm/head.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/asm/head.S b/asm/head.S
index d82e4e5e..ccf09482 100644
--- a/asm/head.S
+++ b/asm/head.S
@@ -270,6 +270,7 @@ boot_entry:
cmpwi cr0,%r3,PVR_TYPE_P9
beq 1f
attn /* Unsupported CPU type... what do we do ? */
+ b . /* loop here, just in case attn is disabled */
/* P8 -> 8 threads */
2: li %r26,7
OpenPOWER on IntegriCloud