From cb1f5614326054b025774dae1a37ad5bdf07902d Mon Sep 17 00:00:00 2001 From: Brian Stegmiller Date: Sun, 15 Nov 2015 10:52:28 -0600 Subject: HOSTBOOT: Support fused cores Change-Id: I2ad133be733ee9e41590b3b8bd60bd6abe69d1a9 RTC: 126786 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22054 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell Reviewed-by: A. Patrick Williams III --- src/lib/syscall_misc.C | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/lib') diff --git a/src/lib/syscall_misc.C b/src/lib/syscall_misc.C index 285fb6091..22ead7a9a 100644 --- a/src/lib/syscall_misc.C +++ b/src/lib/syscall_misc.C @@ -91,14 +91,16 @@ uint64_t cpu_spr_value(CpuSprNames spr) _syscall1(MISC_CPUSPRVALUE, reinterpret_cast(spr))); } -int cpu_master_winkle() +int cpu_master_winkle(bool i_fusedCores) { task_affinity_pin(); task_affinity_migrate_to_master(); int rc = reinterpret_cast( - _syscall1(MISC_CPUWINKLE, - reinterpret_cast(WINKLE_SCOPE_MASTER))); + _syscall2(MISC_CPUWINKLE, + reinterpret_cast(WINKLE_SCOPE_MASTER), + reinterpret_cast(i_fusedCores) )); + task_affinity_unpin(); @@ -111,8 +113,9 @@ int cpu_all_winkle() task_affinity_migrate_to_master(); int rc = reinterpret_cast( - _syscall1(MISC_CPUWINKLE, - reinterpret_cast(WINKLE_SCOPE_ALL))); + _syscall2(MISC_CPUWINKLE, + reinterpret_cast(WINKLE_SCOPE_ALL), + reinterpret_cast(false) )); task_affinity_unpin(); -- cgit v1.2.1