diff options
author | Missy Connell <missyc@us.ibm.com> | 2013-02-28 13:44:52 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-03-26 14:14:33 -0500 |
commit | b2825953b28bea95f4ae46fd268d4e06dcb87455 (patch) | |
tree | a8cca939502696d70fe29e68b5fd556dac9eca55 /src/include/kernel/misc.H | |
parent | b229ae320d4aa5225984699e3c89562df219bf03 (diff) | |
download | talos-hostboot-b2825953b28bea95f4ae46fd268d4e06dcb87455.tar.gz talos-hostboot-b2825953b28bea95f4ae46fd268d4e06dcb87455.zip |
Update Core Scratch Reg 6 with L3 vs Mainstore for FSP to query
RTC:64829
Change-Id: Ic8e7983f6838b79c359c4cee2647b7676493cb1e
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3564
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/kernel/misc.H')
-rw-r--r-- | src/include/kernel/misc.H | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/include/kernel/misc.H b/src/include/kernel/misc.H index 5a818078e..11677d250 100644 --- a/src/include/kernel/misc.H +++ b/src/include/kernel/misc.H @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2012 */ +/* COPYRIGHT International Business Machines Corp. 2011,2013 */ /* */ /* p1 */ /* */ @@ -31,6 +31,8 @@ #include <usr/vmmconst.h> #include <kernel/deferred.H> #include <kernel/task.H> +#include <kernel/memstate.H> +#include <sys/mmio.h> namespace KernelMisc { @@ -111,5 +113,24 @@ namespace KernelMisc * (This address is not dcbz'd itself) */ void populate_cache_lines(uint64_t* i_start, uint64_t* i_end); + + /** @fn set + * + * @brief Update value of scratch register to specified data. + * + * This is used to update any core scratch reg defined by the enum + * MMIO_SCRATCH_REG with the data passed in. + * + * NOTE: This function is a wrapper function for writeScratchReg that + * takes care of modifying the scratch register address value depending + * on the getCPUType. The writeScratchReg takes the scratch address + * passed in and puts that date in that register using assembly code + * + * @param[in] uint64_t - scratch_addr + * @param[in] uint64_t - Data + */ + void updateScratchReg(MMIO_Scratch_Register scratch_addr, uint64_t data); + + }; #endif |