Skip to content
Commit b6966b1b authored by Mark Nelson's avatar Mark Nelson Committed by Paul Mackerras
Browse files

powerpc/wdrtas: Update wdrtas_get_interval to use rtas_data_buf



The buffer passed to the ibm,get-system-parameter RTAS call must be
in the RMA.  To ensure we pass an address in the RMA use rtas_data_buf
for the actual RTAS call and then copy the result to value.  We can't
just make it static because this can be compiled in as a module.

Also add the WDRTAS_SP_SPI_LEN so we don't litter '4' throughout the
function.

Signed-off-by: default avatarMark Nelson <markn@au1.ibm.com>
Tested-by: default avatarAdrian Reber <adrian@lisas.de>
Acked-by: default avatarUtz Bacher <utz.bacher@de.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent ae6e59ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment