aboutsummaryrefslogtreecommitdiff
path: root/lib/libhvcall
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2019-08-26 12:35:32 +1000
committerAlexey Kardashevskiy <aik@ozlabs.ru>2019-08-27 11:50:22 +1000
commit674d0d0cf66d4bcf55333601e1fe66db8fc36385 (patch)
tree7f2dc8dde210fd1867dd0841653218e586237647 /lib/libhvcall
parent7bfe584e321946771692711ff83ad2b5850daca7 (diff)
downloadSLOF-674d0d0cf66d4bcf55333601e1fe66db8fc36385.zip
SLOF-674d0d0cf66d4bcf55333601e1fe66db8fc36385.tar.gz
SLOF-674d0d0cf66d4bcf55333601e1fe66db8fc36385.tar.bz2
rtas: Reserve space for FWNMI log
The Firmware Assisted Non-Maskable Interrupts Option (FWNMI) feature requires some space for RTAS log which is in the RTAS blob area. This expands the RTAS blob size to 2k. More details here: https://patchwork.ozlabs.org/patch/1146765/ Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libhvcall')
-rw-r--r--lib/libhvcall/hvcall.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libhvcall/hvcall.S b/lib/libhvcall/hvcall.S
index b19f6db..9f23624 100644
--- a/lib/libhvcall/hvcall.S
+++ b/lib/libhvcall/hvcall.S
@@ -134,6 +134,13 @@ ENTRY(hv_rtas)
ori r3,r3,KVMPPC_H_RTAS@l
HVCALL
blr
+ /*
+ * A space reserved for a RTAS log from Firmware Assisted
+ * Non-Maskable Interrupts Option (FWNMI) feature.
+ *
+ * The QEMU implementation uses 0x30..0x800 for the log.
+ */
+ .space 2048 - (. - hv_rtas)
.globl hv_rtas_size
hv_rtas_size:
.long . - hv_rtas;
@@ -144,6 +151,8 @@ ENTRY(hv_rtas_broken_sc1)
ori r3,r3,KVMPPC_H_RTAS@l
.long 0x7c000268
blr
+ /* See the FWNMI note above */
+ .space 2048 - (. - hv_rtas_broken_sc1)
.globl hv_rtas_broken_sc1_size
hv_rtas_broken_sc1_size:
.long . - hv_rtas_broken_sc1;