summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe.mk
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2016-12-08 13:22:44 -0600
committerJoshua Hunsberger <jahunsbe@us.ibm.com>2017-10-23 17:00:49 -0500
commit7c134a664ecd90f6c5bb7353df5cf853ed27c925 (patch)
treecb35108a0d58e7d004c378d2cec75592feb9a06b /import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe.mk
parent9ea64c671bd079c5f2139e15fdd1a5c29854b4cf (diff)
downloadtalos-hcode-7c134a664ecd90f6c5bb7353df5cf853ed27c925.tar.gz
talos-hcode-7c134a664ecd90f6c5bb7353df5cf853ed27c925.zip
PK stack checking
This commit adds a thread stack check when a thread is preempted. Another check is done to the kernel stack when back-to-back interrupts are processesed. These checks are done at a time and location in the code where it is inexpensive to do the check, and in the case of the thread stack, a likely place for an stack overflow to occurr. A trap will happen if stack overflow is detected. Two new macros have been made available that can be used to do stack checking at any point in code. These are more expensive so their use needs to be limited. They are currently not yet used. Change-Id: I4b4229a358c3c75a2c1c0cba89bc3a38e6252384 RTC:160103 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/33624 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: ASHISH A. MORE <ashish.more@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Diffstat (limited to 'import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe.mk')
-rw-r--r--import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe.mk b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe.mk
index 3807d8da..7fc5607c 100644
--- a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe.mk
+++ b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pstate_gpe.mk
@@ -87,6 +87,7 @@ $(IMAGE)_COMMONFLAGS+= -DPK_TRACE_SUPPORT=1
$(IMAGE)_COMMONFLAGS+= -DUSE_PK_APP_CFG_H=1
$(IMAGE)_COMMONFLAGS+= -D__PPE_PLAT
$(IMAGE)_COMMONFLAGS+= -D__PK__=1
+#$(IMAGE)_COMMONFLAGS+= -fstack-usage
# add include paths
$(call ADD_PPEIMAGE_INCDIR,$(IMAGE),\
OpenPOWER on IntegriCloud