diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2013-01-07 13:34:27 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-02-08 16:51:17 -0600 |
commit | 0ace043e6f4df6ce20d32524923e732a185853bf (patch) | |
tree | 49abd153d81dc2aa204cc64fed49f6ae243f4487 /src/lib/syscall_misc.C | |
parent | caf328ccd931de4ce4e4d285d1a4e5ddd151abb5 (diff) | |
download | blackbird-hostboot-0ace043e6f4df6ce20d32524923e732a185853bf.tar.gz blackbird-hostboot-0ace043e6f4df6ce20d32524923e732a185853bf.zip |
Support for less than 8 threads per core
Modified anywhere that we enable non-master threads to only
touch the threads that we are told to update.
Change-Id: I5b764e51d85a5c663ac76164e9465831ef0c167c
RTC: 48808
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2877
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/lib/syscall_misc.C')
-rw-r--r-- | src/lib/syscall_misc.C | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/syscall_misc.C b/src/lib/syscall_misc.C index b62a10662..7f490e2ac 100644 --- a/src/lib/syscall_misc.C +++ b/src/lib/syscall_misc.C @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2012 */ +/* COPYRIGHT International Business Machines Corp. 2011,2013 */ /* */ /* p1 */ /* */ @@ -66,10 +66,12 @@ size_t cpu_thread_count() return threads; } -int cpu_start_core(uint64_t pir) +int cpu_start_core(uint64_t pir,uint64_t i_threads) { return reinterpret_cast<int64_t>( - _syscall1(MISC_CPUSTARTCORE, reinterpret_cast<void*>(pir))); + _syscall2(MISC_CPUSTARTCORE, + reinterpret_cast<void*>(pir), + reinterpret_cast<void*>(i_threads))); } uint64_t cpu_spr_value(CpuSprNames spr) |