Skip to content

Commit

Permalink
Stop kernel asserts from being no-op'ed
Browse files Browse the repository at this point in the history
Change-Id: Iaf7ae4b48da327f89c29c8b394de4dad3c3ec7f2
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42303
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
  • Loading branch information
Stephen Cprek authored and ploetzma committed Jun 22, 2017
1 parent 30db384 commit 19b69c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/include/securerom/ecverify.H
Expand Up @@ -43,6 +43,4 @@ int ec_verify (const uint8_t *publicpt, /* 2*EC_COORDBYTES */
const uint8_t *hash, /* EC_HASHBYTES */
const uint8_t *signature) ; /* 2*EC_COORDBYTES */

#define NDEBUG

#endif /* defined(__ECVERIFY_H__) */
4 changes: 2 additions & 2 deletions src/kernel/bltohbdatamgr.C
Expand Up @@ -148,8 +148,8 @@ printk("Version=%lX\n",i_data.version);
if( iv_data.version >= Bootloader::BLTOHB_MMIOBARS )
{
printk("lpc=%lX, xscom=%lX\n", i_data.lpcBAR, i_data.xscomBAR );
kassert(i_data.lpcBar>0);
kassert(i_data.xscomBar>0);
kassert(i_data.lpcBAR>0);
kassert(i_data.xscomBAR>0);
iv_data.lpcBAR = i_data.lpcBAR;
iv_data.xscomBAR = i_data.xscomBAR;
}
Expand Down
2 changes: 2 additions & 0 deletions src/securerom/ecverify.C
Expand Up @@ -42,6 +42,8 @@
#include <stdint.h> /* uint_fast8_t, uintN_t */
#include "inttypes.H" /* PRIx64 used to format bn_t's */

#define NDEBUG

/**
* Define __LITTLE_ENDIAN or __BIG_ENDIAN for target.
*/
Expand Down

0 comments on commit 19b69c3

Please sign in to comment.