summaryrefslogtreecommitdiffstats
path: root/src/include/usr/initservice
diff options
context:
space:
mode:
authorDean Sanner <dsanner@us.ibm.com>2016-10-06 06:14:09 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-10-12 11:52:32 -0400
commit3ab150991f977e81505114f0a20a9d5e5e29f230 (patch)
treea0ce06da2a5ae9a884fba5ed15e3a132ede72ef5 /src/include/usr/initservice
parent84ed4ae0bc19d64b6e9ac3a33420a3ff4d93fb4c (diff)
downloadtalos-hostboot-3ab150991f977e81505114f0a20a9d5e5e29f230.tar.gz
talos-hostboot-3ab150991f977e81505114f0a20a9d5e5e29f230.zip
Save away mbox scratch regs before using
The debug tools use the scratch regs for communication purposes with the debug tools, however the initial values of the scratch regs are used for boot. Save the initial values away so the mbox scratch regs can be used for debug tools Change-Id: I372f7d23bc03cf0c88c845a18ebb1c9657c364c5 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30880 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/initservice')
-rw-r--r--src/include/usr/initservice/mboxRegs.H11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/usr/initservice/mboxRegs.H b/src/include/usr/initservice/mboxRegs.H
index 6adbb546e..716311385 100644
--- a/src/include/usr/initservice/mboxRegs.H
+++ b/src/include/usr/initservice/mboxRegs.H
@@ -38,6 +38,17 @@ namespace SPLESS
const uint32_t MBOX_SCRATCH_REG7 = 0x0005003e; //CFAM 283E
const uint32_t MBOX_SCRATCH_REG8 = 0x0005003f; //CFAM 283F
+ enum
+ {
+ SCRATCH_1 = 0x0, //Location in array is reg num -1
+ SCRATCH_2 = 0x1,
+ SCRATCH_3 = 0x2,
+ SCRATCH_4 = 0x3,
+ SCRATCH_5 = 0x4,
+ SCRATCH_6 = 0x5,
+ SCRATCH_7 = 0x6,
+ SCRATCH_8 = 0x7,
+ };
// Mailbox Scratch Register 3
union MboxScratch3_t
OpenPOWER on IntegriCloud