[RTEMS Project] #3340: gen83xx warning for macros redefined
RTEMS trac
trac at rtems.org
Wed Mar 14 21:06:00 UTC 2018
#3340: gen83xx warning for macros redefined
----------------------------+-----------------------
Reporter: Joel Sherrill | Owner: sebastian
Type: defect | Status: assigned
Priority: normal | Milestone: 5.1
Component: arch/powerpc | Version: 5
Severity: normal | Keywords:
Blocked By: | Blocking:
----------------------------+-----------------------
log/powerpc-hsc_cm01.log:/home/joel/rtems-work/rtems-
testing/rtems/rtems/bsps/powerpc/gen83xx/include/bsp/hwreg_vals.h:244:0:
warning: "FPGA_START" redefined
log/powerpc-hsc_cm01.log:/home/joel/rtems-work/rtems-
testing/rtems/rtems/bsps/powerpc/gen83xx/include/bsp/hwreg_vals.h:246:0:
warning: "FPGA_SIZE" redefined
Looking at the code, it is pretty clear that the macros are redefined.
Unfortunately one of the three has a different value the second time:
========================================
/* fpga BCSR register */
#define FPGA_START 0xF8000000
#define FPGA_SIZE 0x8000
#define FPGA_END (FPGA_START+FPGA_SIZE-1)
/*
* working values for various registers, used in start/start.S
*/
/* fpga config 16 MB size */
#define FPGA_CONFIG_START 0xF8000000
#define FPGA_CONFIG_SIZE 0x01000000
/* fpga register 8 MB size */
#define FPGA_REGISTER_START 0xF9000000
#define FPGA_REGISTER_SIZE 0x00800000
/* fpga fifo 8 MB size */
#define FPGA_FIFO_START 0xF9800000
#define FPGA_FIFO_SIZE 0x00800000
#define FPGA_START (FPGA_CONFIG_START)
// fpga window size 32 MByte
#define FPGA_SIZE (0x02000000)
#define FPGA_END (FPGA_START+FPGA_SIZE-1)
========================================
--
Ticket URL: <http://devel.rtems.org/ticket/3340>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list