diff options
author | Brian Bakke <bbakke@us.ibm.com> | 2017-11-17 10:51:24 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-11-30 09:33:28 -0500 |
commit | 3a88f18bc7386abaaceedca9b327806d85734f67 (patch) | |
tree | c4351bac24ee26d90c977a0bd1d766217f8817e2 /src/lib | |
parent | c5c12e6e0ae9160e15f7ff07d123cb9033103947 (diff) | |
download | talos-hostboot-3a88f18bc7386abaaceedca9b327806d85734f67.tar.gz talos-hostboot-3a88f18bc7386abaaceedca9b327806d85734f67.zip |
Enable ATTN prior to OPAL handoff
Change-Id: Iadfded90c09b149948348ee462ab34f9c2431982
RTC: 182134
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/49865
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/syscall_misc.C | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/syscall_misc.C b/src/lib/syscall_misc.C index fd8d76b62..dff702ddd 100644 --- a/src/lib/syscall_misc.C +++ b/src/lib/syscall_misc.C @@ -93,6 +93,14 @@ uint64_t cpu_spr_value(CpuSprNames spr) _syscall1(MISC_CPUSPRVALUE, reinterpret_cast<void*>(spr))); } +uint64_t cpu_spr_set(CpuSprNames spr, uint64_t newValue) +{ + return reinterpret_cast<uint64_t>( + _syscall2( MISC_CPUSPRSET, + reinterpret_cast<void*>(spr), + reinterpret_cast<void*>(newValue) )); +} + int cpu_master_winkle(bool i_fusedCores) { task_affinity_pin(); |