From 3ab150991f977e81505114f0a20a9d5e5e29f230 Mon Sep 17 00:00:00 2001 From: Dean Sanner Date: Thu, 6 Oct 2016 06:14:09 -0500 Subject: 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 Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes Reviewed-by: Prachi Gupta Reviewed-by: Daniel M. Crowell --- src/include/usr/initservice/mboxRegs.H | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include/usr/initservice') 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 -- cgit v1.2.1