diff options
author | William Bryan <wilbryan@us.ibm.com> | 2017-07-27 17:02:20 -0500 |
---|---|---|
committer | William A. Bryan <wilbryan@us.ibm.com> | 2017-07-31 11:18:35 -0400 |
commit | fb653af4fedc8f816eb5685a5432e7a2e3726a1b (patch) | |
tree | 3e063060ce7be0c8894176d229ece2a8d17f8ab6 /src/occ_gpe0/gpe0_main.c | |
parent | b1c803e8f69d56ebdca5445527f01c23bc3e8d2b (diff) | |
download | talos-occ-fb653af4fedc8f816eb5685a5432e7a2e3726a1b.tar.gz talos-occ-fb653af4fedc8f816eb5685a5432e7a2e3726a1b.zip |
Remove GPE0 main thread
CQ:SW395789
Change-Id: I4583482e4a81ffd9c6ec992b5e78e62e526c6196
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43811
Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/occ_gpe0/gpe0_main.c')
-rw-r--r-- | src/occ_gpe0/gpe0_main.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/occ_gpe0/gpe0_main.c b/src/occ_gpe0/gpe0_main.c index 2962d60..eeea28d 100644 --- a/src/occ_gpe0/gpe0_main.c +++ b/src/occ_gpe0/gpe0_main.c @@ -36,11 +36,8 @@ #include "gpe_export.h" #define KERNEL_STACK_SIZE 512 -#define MAIN_THREAD_STACK_SIZE 512 uint8_t G_kernel_stack[KERNEL_STACK_SIZE]; -uint8_t G_main_thread_stack[MAIN_THREAD_STACK_SIZE]; -PkThread G_main_thread; //Point to the GPE shared structure #define GPE_SHARED_DATA_ADDR 0xFFFB3C00 @@ -60,19 +57,6 @@ IPC_MSGQ_CREATE(G_gpe0_test_msgq0); //this message will automatically be placed on the message queue. IPC_MSGQ_MSG_CREATE(G_test_msg, IPC_ST_TEST_FUNC0, &G_gpe0_test_msgq0); - -// Main thread of execution. Currently does nothing -void main_thread(void* arg) -{ - volatile uint64_t t_ticks = 0; - - while(1) - { - pk_sleep(PK_MICROSECONDS(250)); - t_ticks++; - } -} - // The main function is called by the boot code (after initializing some // registers) int main(int argc, char **argv) @@ -114,25 +98,5 @@ int main(int argc, char **argv) pk_halt(); } - - //Initialize the thread control block for G_main_thread - pk_thread_create(&G_main_thread, - (PkThreadRoutine)main_thread, - (void*)NULL, - (PkAddress)G_main_thread_stack, - (size_t)MAIN_THREAD_STACK_SIZE, - (PkThreadPriority)1); - - //PK_TRACE_BIN("G_main_thread", &G_main_thread, sizeof(G_main_thread)); - - //Make G_main_thread runnable - pk_thread_resume(&G_main_thread); - - PK_TRACE("Starting thread(s)"); - - // Start running the highest priority thread. - // This function never returns - pk_start_threads(); - return 0; } |