diff options
author | William Bryan <wilbryan@us.ibm.com> | 2015-10-09 19:42:51 -0500 |
---|---|---|
committer | William A. Bryan <wilbryan@us.ibm.com> | 2015-11-02 14:22:16 -0600 |
commit | 39d70f23e9ecbede782727a2202911eea89c1003 (patch) | |
tree | 466f7c568bfd3be07bf426dbb733f2fc51c71d34 /src/occ_gpe0 | |
parent | b780668c24b267b1831b411a8f30fa3ae98ba10a (diff) | |
download | talos-occ-39d70f23e9ecbede782727a2202911eea89c1003.tar.gz talos-occ-39d70f23e9ecbede782727a2202911eea89c1003.zip |
Fixed warnings and added -Werror CFLAG
Fixed adding traces in error handling code
RTC: 137993
Change-Id: Ifc48da76bf2af90435b708c3415b5f456957911b
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21097
Tested-by: William A. Bryan <wilbryan@us.ibm.com>
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/occ_gpe0')
-rw-r--r-- | src/occ_gpe0/apss_init.c | 24 | ||||
-rw-r--r-- | src/occ_gpe0/apss_util.c | 26 | ||||
-rw-r--r-- | src/occ_gpe0/apss_util.h | 26 | ||||
-rw-r--r-- | src/occ_gpe0/img_defs.mk | 2 | ||||
-rw-r--r-- | src/occ_gpe0/pk_app_cfg.h | 2 |
5 files changed, 77 insertions, 3 deletions
diff --git a/src/occ_gpe0/apss_init.c b/src/occ_gpe0/apss_init.c index 39aeb79..f72f776 100644 --- a/src/occ_gpe0/apss_init.c +++ b/src/occ_gpe0/apss_init.c @@ -1,3 +1,27 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/occ_gpe0/apss_init.c $ */ +/* */ +/* OpenPOWER OnChipController Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ #include "pk.h"
#include "ppe42_scom.h"
#include "ipc_api.h"
diff --git a/src/occ_gpe0/apss_util.c b/src/occ_gpe0/apss_util.c index 04e9879..824d8dc 100644 --- a/src/occ_gpe0/apss_util.c +++ b/src/occ_gpe0/apss_util.c @@ -1,3 +1,27 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/occ_gpe0/apss_util.c $ */ +/* */ +/* OpenPOWER OnChipController Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ #include "pk.h" #include "ppe42_scom.h" @@ -51,7 +75,7 @@ void apss_set_ffdc(GpeErrorStruct *o_error, uint32_t i_addr, uint32_t i_rc, uint int wait_spi_completion(GpeErrorStruct *error, uint32_t reg, uint8_t timeout) { - int i; + int i = 0; int rc; uint64_t status; diff --git a/src/occ_gpe0/apss_util.h b/src/occ_gpe0/apss_util.h index 1c53cde..9d0a763 100644 --- a/src/occ_gpe0/apss_util.h +++ b/src/occ_gpe0/apss_util.h @@ -1,3 +1,27 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/occ_gpe0/apss_util.h $ */ +/* */ +/* OpenPOWER OnChipController Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* Licensed under the Apache License, Version 2.0 (the "License"); */ +/* you may not use this file except in compliance with the License. */ +/* You may obtain a copy of the License at */ +/* */ +/* http://www.apache.org/licenses/LICENSE-2.0 */ +/* */ +/* Unless required by applicable law or agreed to in writing, software */ +/* distributed under the License is distributed on an "AS IS" BASIS, */ +/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ +/* implied. See the License for the specific language governing */ +/* permissions and limitations under the License. */ +/* */ +/* IBM_PROLOG_END_TAG */ #ifndef _APSS_UTIL_H #define _APSS_UTIL_H @@ -16,4 +40,6 @@ asm volatile \ : [dec_var]"=r"(reg_var) \ ); +void busy_wait(uint32_t t_microseconds); + #endif //_APSS_UTIL_H diff --git a/src/occ_gpe0/img_defs.mk b/src/occ_gpe0/img_defs.mk index 674765d..ade3c6b 100644 --- a/src/occ_gpe0/img_defs.mk +++ b/src/occ_gpe0/img_defs.mk @@ -191,7 +191,7 @@ GCC-CFLAGS += -Wall -fsigned-char -msoft-float \ -ffixed-r22 -ffixed-r23 -ffixed-r24 -ffixed-r25 \ -ffixed-r26 -ffixed-r27 \ -ffixed-cr1 -ffixed-cr2 -ffixed-cr3 -ffixed-cr4 \ - -ffixed-cr5 -ffixed-cr6 -ffixed-cr7 + -ffixed-cr5 -ffixed-cr6 -ffixed-cr7 -Werror CFLAGS = -c $(GCC-CFLAGS) $(PIPE-CFLAGS) $(GCC-O-LEVEL) $(INCLUDES) diff --git a/src/occ_gpe0/pk_app_cfg.h b/src/occ_gpe0/pk_app_cfg.h index e022118..8f1feec 100644 --- a/src/occ_gpe0/pk_app_cfg.h +++ b/src/occ_gpe0/pk_app_cfg.h @@ -38,7 +38,7 @@ #ifndef SIMICS_ENVIRONMENT #define SIMICS_ENVIRONMENT 1 -#warning Building for Simics! +#pragma message "Building for Simics!" #endif /// Static configuration data for external interrupts: |