Changeset aaca942 in rtems


Ignore:
Timestamp:
Jan 4, 2005, 11:30:45 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
23b68c2
Parents:
92049ab
Message:

2005-01-04 Joel Sherrill <joel@…>

  • at91rm9200/clock/clock.c, at91rm9200/irq/irq.c, at91rm9200/pmc/pmc.c, mc9328mxl/clock/clockdrv.c, mc9328mxl/irq/irq.c, mc9328mxl/irq/irq.h, shared/arm920/mmu.c: Remove warnings.
Location:
c/src/lib/libcpu/arm
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/ChangeLog

    r92049ab raaca942  
     12005-01-04      Joel Sherrill <joel@OARcorp.com>
     2
     3        * at91rm9200/clock/clock.c, at91rm9200/irq/irq.c, at91rm9200/pmc/pmc.c,
     4        mc9328mxl/clock/clockdrv.c, mc9328mxl/irq/irq.c, mc9328mxl/irq/irq.h,
     5        shared/arm920/mmu.c: Remove warnings.
     6
    172005-01-02      Ralf Corsepius <ralf.corsepius@rtems.org>
    28
  • c/src/lib/libcpu/arm/at91rm9200/clock/clock.c

    r92049ab raaca942  
    2222#include <irq.h>
    2323#include <at91rm9200.h>
     24#include <at91rm9200_pmc.h>
    2425
    2526
  • c/src/lib/libcpu/arm/at91rm9200/irq/irq.c

    r92049ab raaca942  
    4646     * convert it to a long word offset to get source's vector register
    4747     */
    48     if (AIC_SVR_REG(irq->name * 4) != default_int_handler) {
     48    if (AIC_SVR_REG(irq->name * 4) != (uint32_t) default_int_handler) {
    4949        return 0;
    5050    }
     
    5555     * store the new handler
    5656     */
    57     AIC_SVR_REG(irq->name * 4) = irq->hdl;
     57    AIC_SVR_REG(irq->name * 4) = (uint32_t) irq->hdl;
    5858   
    5959    /*
     
    8888     * Check if the handler is actually connected. If not, issue an error.
    8989     */
    90     if (AIC_SVR_REG(irq->name * 4) != irq->hdl) {
     90    if (AIC_SVR_REG(irq->name * 4) != (uint32_t) irq->hdl) {
    9191      return 0;
    9292    }
     
    108108     * restore the default irq value
    109109     */
    110     AIC_SVR_REG(irq->name * 4) = default_int_handler;
     110    AIC_SVR_REG(irq->name * 4) = (uint32_t) default_int_handler;
    111111   
    112112    _CPU_ISR_Enable(level);
  • c/src/lib/libcpu/arm/at91rm9200/pmc/pmc.c

    r92049ab raaca942  
    3030{
    3131    uint32_t mck_reg;
    32     uint32_t mck_freq;
     32    uint32_t mck_freq = 0;  /* to avoid warnings */
    3333    uint32_t pll_reg;
    34     int prescaler;
     34    int prescaler = 0;  /* to avoid warnings */
    3535
    3636    mck_reg = PMC_REG(PMC_MCKR);
  • c/src/lib/libcpu/arm/mc9328mxl/clock/clockdrv.c

    r92049ab raaca942  
    2020#include <irq.h>
    2121#include <mc9328mxl.h>
     22#include <rtems/bspIo.h>  /* for printk */
    2223
    2324/* this is defined in ../../../shared/clockdrv_shell.c */
     
    5859 * Installs the clock ISR. You shouldn't need to change this.
    5960 */
    60 #define Clock_driver_support_install_isr( _new, _old )                      \
    61   do {                                                                      \
    62       BSP_install_rtems_irq_handler(&clock_isr_data);                       \
    63      } while(0)
     61#define Clock_driver_support_install_isr( _new, _old ) \
     62  do {                                                 \
     63      (_old) = NULL;                                   \
     64      BSP_install_rtems_irq_handler(&clock_isr_data);  \
     65  } while(0)
    6466
    6567
  • c/src/lib/libcpu/arm/mc9328mxl/irq/irq.c

    r92049ab raaca942  
    3737{
    3838    rtems_interrupt_level level;
    39     uint32_t *bsp_tbl;
     39    rtems_irq_hdl *bsp_tbl;
    4040
    41     bsp_tbl = (uint32_t*)&bsp_vector_table;
     41    bsp_tbl = &bsp_vector_table;
    4242   
    4343    if (!isValidInterrupt(irq->name)) {
     
    8181{
    8282    rtems_interrupt_level level;
    83     uint32_t *bsp_tbl;
     83    rtems_irq_hdl *bsp_tbl;
    8484
    85     bsp_tbl = (uint32_t*)&bsp_vector_table;
     85    bsp_tbl = &bsp_vector_table;
    8686 
    8787    if (!isValidInterrupt(irq->name)) {
  • c/src/lib/libcpu/arm/mc9328mxl/irq/irq.h

    r92049ab raaca942  
    105105} rtems_irq_symbolic_name;
    106106
    107 extern void *bsp_vector_table;
    108 #define VECTOR_TABLE &bsp_vector_table;
    109                                                                                            
    110107typedef unsigned char  rtems_irq_level;
    111108typedef unsigned char  rtems_irq_trigger;
     
    118115typedef int  (*rtems_irq_is_enabled)(const struct __rtems_irq_connect_data__*);
    119116
     117extern rtems_irq_hdl bsp_vector_table;
     118#define VECTOR_TABLE bsp_vector_table
     119                                                                                           
    120120typedef struct __rtems_irq_connect_data__ {
    121121    /* IRQ line */
  • c/src/lib/libcpu/arm/shared/arm920/mmu.c

    r92049ab raaca942  
    7878    i = 0;
    7979    while(map[i].size != 0) {
    80         int c;
    81         int b;
     80        int c = 0;  /* to avoid uninitialized warnings */
     81        int b = 0;  /* to avoid uninitialized warnings */
    8282        int pbase;
    8383        int vbase;
Note: See TracChangeset for help on using the changeset viewer.