Changeset 910adc3 in rtems


Ignore:
Timestamp:
Sep 28, 2017, 11:18:12 AM (20 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
71923138
Parents:
610ffd7
git-author:
Sebastian Huber <sebastian.huber@…> (09/28/17 11:18:12)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/28/17 11:18:35)
Message:

bsps: Fix integer to/from pointer warnings

Update #3082.

Location:
c/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq.c

    r610ffd7 r910adc3  
    9191    rtems_interrupt_disable(level);
    9292
    93     if ( (int)rtems_hdl_tbl[irq->name].next_handler  == -1 ) {
     93    if ( (intptr_t)rtems_hdl_tbl[irq->name].next_handler  == -1 ) {
    9494      rtems_interrupt_enable(level);
    9595      printk("IRQ vector %d already connected to an unshared handler\n",irq->name);
     
    211211    }
    212212
    213     if( (int)rtems_hdl_tbl[irq->name].next_handler != -1 )
     213    if( (intptr_t)rtems_hdl_tbl[irq->name].next_handler != -1 )
    214214    {
    215215       int found = 0;
     
    346346        for ( i = config->irqBase; i < config->irqBase + config->irqNb; i++ ) {
    347347                for( vchain = &rtems_hdl_tbl[i];
    348                      ((int)vchain != -1 && vchain->hdl != default_rtems_entry.hdl);
     348                     ((intptr_t)vchain != -1 && vchain->hdl != default_rtems_entry.hdl);
    349349                     vchain = (rtems_irq_connect_data*)vchain->next_handler )
    350350                {
  • c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq_supp.h

    r610ffd7 r910adc3  
    7979        rtems_irq_connect_data* vchain;
    8080        for( vchain = &tbl[irq];
    81                         ((int)vchain != -1 && vchain->hdl != sentinel);
     81                        ((intptr_t)vchain != -1 && vchain->hdl != sentinel);
    8282                        vchain = (rtems_irq_connect_data*)vchain->next_handler )
    8383        {
  • c/src/libchip/serial/ns16550.c

    r610ffd7 r910adc3  
    709709  void ns16550_isr(void *arg)
    710710  {
    711     int minor = (int) arg;
     711    int minor = (intptr_t) arg;
    712712
    713713    ns16550_process( minor);
     
    734734        RTEMS_INTERRUPT_SHARED,
    735735        ns16550_isr,
    736         (void *) minor
     736        (void *) (intptr_t) minor
    737737      );
    738738      if (sc != RTEMS_SUCCESSFUL) {
     
    784784      c->ulIntVector,
    785785      ns16550_isr,
    786       (void *) minor
     786      (void *) (intptr_t) minor
    787787    );
    788788    if (sc != RTEMS_SUCCESSFUL) {
Note: See TracChangeset for help on using the changeset viewer.