summaryrefslogtreecommitdiffstats
path: root/src/occ_405/incl
diff options
context:
space:
mode:
authorIlya Smirnov <ismirno@us.ibm.com>2017-07-31 10:35:00 -0500
committerWilliam A. Bryan <wilbryan@us.ibm.com>2017-08-21 15:09:44 -0400
commit7efcfd6eaba07fbdd3eeed455c81c34e75735dc1 (patch)
treee4118313c1ba75cc5491345cc0d9d9005d23ce67 /src/occ_405/incl
parent3b72373a3bfd5716902b48515f96faac683ef8dd (diff)
downloadtalos-occ-7efcfd6eaba07fbdd3eeed455c81c34e75735dc1.tar.gz
talos-occ-7efcfd6eaba07fbdd3eeed455c81c34e75735dc1.zip
IPL Time Checkstop Analysis Part 3: OCC bootloader and main
Change-Id: Id4d050f1d78a1921afc839c8b2b382961def64f0 RTC:155065 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43938 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Martha Broyles <mbroyles@us.ibm.com> Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/occ_405/incl')
-rwxr-xr-xsrc/occ_405/incl/common_types.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/occ_405/incl/common_types.h b/src/occ_405/incl/common_types.h
index d8d8aab..a2f2363 100755
--- a/src/occ_405/incl/common_types.h
+++ b/src/occ_405/incl/common_types.h
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER OnChipController Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2016 */
+/* Contributors Listed Below - COPYRIGHT 2011,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -74,6 +74,14 @@ typedef enum
#define ID_NUM_INVALID 0xFFFF
#define SRAM_HEADER_HACK 0x48000042
+
+struct OCC_FLAGS
+{
+ uint16_t reserved : 15;
+ uint16_t ipl_time_flag : 1; // Used to indicate whether OCC was started
+ // during IPL. Used for IPL-time checkstop
+};
+
#ifndef __ASSEMBLER__
// Structure for the common image header (total size is 162 bytes).
@@ -132,6 +140,12 @@ struct image_header
uint32_t version; // image version
char image_id_str[IMAGE_ID_STR_SZ]; // image id string
uint16_t aplt_id; // type: enum OCC_APLT
+ union
+ {
+ uint16_t flags;
+ struct OCC_FLAGS flag_bits;
+ } occ_flags; // bit field for occ flags
+ uint32_t nest_frequency; // nest frequency
uint8_t reserved[RESERVED_SZ]; // reserved for future use
} __attribute__ ((__packed__));
@@ -188,6 +202,8 @@ const volatile imageHdr_t nameStr __attribute__((section("imageHeader")))= \
0, /* version (filled in later by imageHdrScript) */ \
IdStr, /* image_id_str */ \
(uint16_t)IdNum, /* aplt_id */ \
+ {0}, /* flags */ \
+ 0, /* nest frequency */ \
{0} /* reserved */ \
};
OpenPOWER on IntegriCloud