summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_irq_handlers.c
diff options
context:
space:
mode:
authorYue Du <daviddu@us.ibm.com>2017-01-11 23:37:55 -0600
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2017-10-23 17:07:15 -0500
commitdb3fc618046c94c8df3dfc66ac883a3be8151eb4 (patch)
tree7d623a4b440cc5f41b64d242eaa41d0643d366d1 /import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_irq_handlers.c
parent3df424c99c4a9a7c7b9e1e02a5a799256f23a3b6 (diff)
downloadtalos-hcode-db3fc618046c94c8df3dfc66ac883a3be8151eb4.tar.gz
talos-hcode-db3fc618046c94c8df3dfc66ac883a3be8151eb4.zip
STOP: optimize size of stop images
1) optimize scom with no rc and directly inline asm(saved for 2K :D) 2) initialize all variables(doesnt really save size, just good guideline) 3) loop both cores when block is big and redundant(saved only 50B -_-) (50b for 3 blocks, each block saves 17b, or 4 instructions) 4) improvement on history update(saved 500B more :)) 5) functionalize the exit catchup routine which is identical twice (this back fired and cost us 100B :() 6) functionalize the eval eimr override macro which is identical twice (saved 130B :|) 7) finally the saving is about 2728B on CME 8) apply history update tech to sgpe, found bug in the tech, fixed (but our saving is back to ~2500B) 9) clean up sgpe redundent ex branching code (same as cme saved only about ~60B) 10) rebase Change-Id: I3664d6a2dcab85f896a583852afde948e635bd02 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34777 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_irq_handlers.c')
-rw-r--r--import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_irq_handlers.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_irq_handlers.c b/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_irq_handlers.c
index 6c0ae6a6..1384b7e3 100644
--- a/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_irq_handlers.c
+++ b/import/chips/p9/procedures/ppe_closed/sgpe/stop_gpe/p9_sgpe_stop_irq_handlers.c
@@ -86,15 +86,15 @@ void
p9_sgpe_stop_pig_handler(void* arg, PkIrqId irq)
{
PkMachineContext ctx;
- uint32_t cirq;
- uint32_t qirq;
- uint32_t cloop;
- uint32_t qloop;
+ uint32_t cirq = 0;
+ uint32_t qirq = 0;
+ uint32_t cloop = 0;
+ uint32_t qloop = 0;
uint32_t cpending_t2 = 0;
uint32_t cpending_t3 = 0;
uint32_t qpending_t6 = 0;
uint32_t payload = 0;
- uint64_t scom_data;
+ uint64_t scom_data = 0;
//=========================
MARK_TRAP(STOP_PIG_HANDLER)
OpenPOWER on IntegriCloud