Changeset 1ecb21d in rtems


Ignore:
Timestamp:
Oct 14, 2014, 12:08:14 AM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
3785ed6c
Parents:
2f3f206
git-author:
Joel Sherrill <joel.sherrill@…> (10/14/14 00:08:14)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/16/14 13:58:47)
Message:

libbsp/i386/shared: Fix warnings

Location:
c/src/lib/libbsp/i386/shared
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/shared/comm/i386-stub.c

    r2f3f206 r1ecb21d  
    100100#include <stdbool.h>
    101101
     102/*
     103 * Prototypes we need to avoid warnings but not going into public space.
     104 */
     105void breakpoint (void);
     106void set_debug_traps(void);
     107void set_mem_err(void);
     108void _returnFromException(void);
     109void exceptionHandler (int, void (*handler) (void));
     110
    102111/************************************************************************
    103112 *
     
    107116extern int getDebugChar (void);            /* read and return a single char */
    108117
    109 /* assign an exception handler */
    110 extern void exceptionHandler (int, void (*handler) (void));
    111118
    112119/************************************************************************/
     
    565572static short error;
    566573
    567 void
     574static void
    568575debug_error (
    569576     char *format,
     
    754761  int addr, length, reg;
    755762  char *ptr;
    756   int newPC;
    757763
    758764  gdb_i386vector = exceptionVector;
     
    899905            registers[PC] = addr;
    900906
    901           newPC = registers[PC];
    902 
    903907          /* clear the trace bit */
    904908          registers[PS] &= 0xfffffeff;
  • c/src/lib/libbsp/i386/shared/irq/irq.c

    r2f3f206 r1ecb21d  
    1 /* irq.c
    2  *
     1/*
    32 *  This file contains the implementation of the function described in irq.h
    4  *
     3 */
     4
     5/*
    56 *  Copyright (c) 2009 embedded brains GmbH
    67 *  Copyright (C) 1998 valette@crf.canon.fr
  • c/src/lib/libbsp/i386/shared/irq/irq_asm.S

    r2f3f206 r1ecb21d  
    1 /* irq.c
    2  *
     1/*
    32 *  This file contains the implementation of the function described in irq.h
    4  *
     3 */
     4
     5/*
    56 *  Copyright (C) 1998 valette@crf.canon.fr
    67 *
     
    1920#include <rtems/score/cpu.h>
    2021#include <rtems/score/percpu.h>
     22
     23#include <bsp.h> /* to establish dependency on prototype */
    2124
    2225#ifndef CPU_STACK_ALIGNMENT
  • c/src/lib/libbsp/i386/shared/pci/pcibios.c

    r2f3f206 r1ecb21d  
    263263
    264264  return ucBusCount;
    265 }
    266 
    267 
    268 int
    269 BSP_pciFindDevice( unsigned short vendorid, unsigned short deviceid,
    270                    int instance, int *pbus, int *pdev, int *pfun )
    271 {
    272    int sig, rval;
    273 
    274    rval = pcib_find_by_devid(vendorid, deviceid, instance, &sig);
    275 
    276    if ( PCIB_ERR_SUCCESS == rval ) {
    277                 *pbus = PCIB_DEVSIG_BUS(sig);
    278                 *pdev = PCIB_DEVSIG_DEV(sig);
    279                 *pfun = PCIB_DEVSIG_FUNC(sig);
    280    }
    281 
    282    return rval;
    283265}
    284266
Note: See TracChangeset for help on using the changeset viewer.