diff options
| author | Bill Schwartz <whs@us.ibm.com> | 2012-10-10 10:36:29 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-10-12 16:29:17 -0500 |
| commit | b201169eeae76a7697f4f207dd583d40a2f07f66 (patch) | |
| tree | a05fa3da99dddab0491623aebc1110e73d430bf7 /src/sys | |
| parent | 3536e96bd3a1d490cec900617fab6703fb7798ea (diff) | |
| download | talos-hostboot-b201169eeae76a7697f4f207dd583d40a2f07f66.tar.gz talos-hostboot-b201169eeae76a7697f4f207dd583d40a2f07f66.zip | |
Memory Leak task_end
Change-Id: Idb7a2d8d72a55f644efd0b2548eca5df5d062e6d
RTC: 47491
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2011
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/sys')
| -rw-r--r-- | src/sys/init/init_main.C | 55 | ||||
| -rw-r--r-- | src/sys/prof/idletask.C | 3 | ||||
| -rw-r--r-- | src/sys/vfs/vfs_main.C | 48 |
3 files changed, 51 insertions, 55 deletions
diff --git a/src/sys/init/init_main.C b/src/sys/init/init_main.C index 96fea57a8..58f2daef1 100644 --- a/src/sys/init/init_main.C +++ b/src/sys/init/init_main.C @@ -1,25 +1,25 @@ -// IBM_PROLOG_BEGIN_TAG -// This is an automatically generated prolog. -// -// $Source: src/sys/init/init_main.C $ -// -// IBM CONFIDENTIAL -// -// COPYRIGHT International Business Machines Corp. 2010 - 2011 -// -// p1 -// -// Object Code Only (OCO) source materials -// Licensed Internal Code Source Materials -// IBM HostBoot Licensed Internal Code -// -// The source code for this program is not published or other- -// wise divested of its trade secrets, irrespective of what has -// been deposited with the U.S. Copyright Office. -// -// Origin: 30 -// -// IBM_PROLOG_END +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/sys/init/init_main.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2010,2012 */ +/* */ +/* p1 */ +/* */ +/* Object Code Only (OCO) source materials */ +/* Licensed Internal Code Source Materials */ +/* IBM HostBoot Licensed Internal Code */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ #include <kernel/console.H> // TODO : Remove this. #include <kernel/syscalls.H> @@ -32,9 +32,9 @@ #include <assert.h> -void vfs_main(void*); +void* vfs_main(void*); -void init_main(void* unused) +void* init_main(void* unused) { tid_t tidrc = 0; barrier_t l_barrier; @@ -57,10 +57,5 @@ void init_main(void* unused) crit_assert( 0 ); // stop here. } - // should never reach this point... - task_end(); - - - while(1) - task_yield(); + return NULL; } diff --git a/src/sys/prof/idletask.C b/src/sys/prof/idletask.C index 8f79b94f7..b25a5fc17 100644 --- a/src/sys/prof/idletask.C +++ b/src/sys/prof/idletask.C @@ -35,7 +35,7 @@ using namespace Systemcalls; -void TaskManager::idleTaskLoop(void* unused) +void* TaskManager::idleTaskLoop(void* unused) { while(1) { @@ -48,4 +48,5 @@ void TaskManager::idleTaskLoop(void* unused) // Execute nap. nap(); } + return NULL; } diff --git a/src/sys/vfs/vfs_main.C b/src/sys/vfs/vfs_main.C index 032a35c3f..5b389a4df 100644 --- a/src/sys/vfs/vfs_main.C +++ b/src/sys/vfs/vfs_main.C @@ -1,26 +1,25 @@ -/* IBM_PROLOG_BEGIN_TAG - * This is an automatically generated prolog. - * - * $Source: src/sys/vfs/vfs_main.C $ - * - * IBM CONFIDENTIAL - * - * COPYRIGHT International Business Machines Corp. 2010-2012 - * - * p1 - * - * Object Code Only (OCO) source materials - * Licensed Internal Code Source Materials - * IBM HostBoot Licensed Internal Code - * - * The source code for this program is not published or other- - * wise divested of its trade secrets, irrespective of what has - * been deposited with the U.S. Copyright Office. - * - * Origin: 30 - * - * IBM_PROLOG_END_TAG - */ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/sys/vfs/vfs_main.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2010,2012 */ +/* */ +/* p1 */ +/* */ +/* Object Code Only (OCO) source materials */ +/* Licensed Internal Code Source Materials */ +/* IBM HostBoot Licensed Internal Code */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ #include <string.h> #include <errno.h> @@ -58,7 +57,7 @@ struct VfsEntry VfsEntry* prev; }; -void vfs_main(void* i_barrier) +void* vfs_main(void* i_barrier) { barrier_t * barrier = (barrier_t *)i_barrier; // Create message queue, register with kernel. @@ -175,6 +174,7 @@ void vfs_main(void* i_barrier) break; } } // end while(1) + return NULL; } // ---------------------------------------------------------------------------- |

