diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2014-03-11 17:11:36 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-04-02 17:18:32 -0500 |
commit | 0c8a1f50840d5533bee2d7c5858595b685e9a40e (patch) | |
tree | 022c65bc5a6ac8e47fb202c9592ce3aa512e64bc /src/lib | |
parent | 5f089a9dfd51c9318996a143f436e12b96d025c9 (diff) | |
download | talos-hostboot-0c8a1f50840d5533bee2d7c5858595b685e9a40e.tar.gz talos-hostboot-0c8a1f50840d5533bee2d7c5858595b685e9a40e.zip |
Fix BEAM IPA analysis and errors.
Change-Id: I5b70acbb67581728e077816b822ecbbf6cbe07f6
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9781
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/syscall_task.C | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/syscall_task.C b/src/lib/syscall_task.C index 27272ef2e..f5fd6d5ce 100644 --- a/src/lib/syscall_task.C +++ b/src/lib/syscall_task.C @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2010,2013 */ +/* COPYRIGHT International Business Machines Corp. 2010,2014 */ /* */ /* p1 */ /* */ @@ -59,14 +59,14 @@ void task_end2(void* retval) tid_t task_gettid() { - register task_t* task; + register task_t* task = NULL; asm volatile("mr %0, 13" : "=r"(task)); return task->tid; } cpuid_t task_getcpuid() { - register task_t* task; + register task_t* task = NULL; asm volatile("mr %0, 13" : "=r"(task)); return task->cpu->cpu; } @@ -121,7 +121,7 @@ tid_t task_exec(const char* file, void* ptr) void task_affinity_pin() { // Get task structure. - register task_t* task; + register task_t* task = NULL; asm volatile("mr %0, 13" : "=r"(task)); // Increment pin count. @@ -131,7 +131,7 @@ void task_affinity_pin() void task_affinity_unpin() { // Get task structure. - register task_t* task; + register task_t* task = NULL; asm volatile("mr %0, 13" : "=r"(task)); // Decrement pin count. @@ -146,7 +146,7 @@ void task_affinity_migrate_to_master() void task_detach() { // Get task structure. - register task_t* task; + register task_t* task = NULL; asm volatile("mr %0, 13" : "=r"(task)); task->detached = true; |