Changeset 2681fc4 in rtems


Ignore:
Timestamp:
Oct 16, 2014, 8:12:42 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
2d9eceb
Parents:
f3a66a3
git-author:
Joel Sherrill <joel.sherrill@…> (10/16/14 20:12:42)
git-committer:
Joel Sherrill <joel.sherrill@…> (10/19/14 22:00:56)
Message:

mips/malta: Fix warnings

Location:
c/src/lib/libbsp/mips/malta
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/malta/console/conscfg.c

    rf3a66a3 r2681fc4  
    4040#define COM_IO_BASE_ADDRESS   (0xa0000000UL | 0x18000000UL)
    4141
    42 uint8_t com_get_register(uint32_t addr, uint8_t i);
    43 void com_set_register(uint32_t addr, uint8_t i, uint8_t val);
    44 uint8_t tty2_get_register(uint32_t addr, uint8_t i);
    45 void tty2_set_register(uint32_t addr, uint8_t i, uint8_t val);
     42static uint8_t com_get_register(uintptr_t addr, uint8_t i);
     43static void com_set_register(uintptr_t addr, uint8_t i, uint8_t val);
     44static uint8_t tty2_get_register(uintptr_t addr, uint8_t i);
     45static void tty2_set_register(uintptr_t addr, uint8_t i, uint8_t val);
    4646
    4747
    48 uint8_t com_get_register(uint32_t addr, uint8_t i)
     48uint8_t com_get_register(uintptr_t addr, uint8_t i)
    4949{
    5050  uint8_t val;
     
    5858}
    5959
    60 void com_set_register(uint32_t addr, uint8_t i, uint8_t val)
     60void com_set_register(uintptr_t addr, uint8_t i, uint8_t val)
    6161{
    6262  volatile uint8_t *ptr;
     
    6868}
    6969
    70 uint8_t tty2_get_register(uint32_t addr, uint8_t i)
     70uint8_t tty2_get_register(uintptr_t addr, uint8_t i)
    7171{
    7272  uint8_t val;
     
    8181}
    8282
    83 void tty2_set_register(uint32_t addr, uint8_t i, uint8_t val)
     83void tty2_set_register(uintptr_t addr, uint8_t i, uint8_t val)
    8484{
    8585  volatile uint8_t *ptr;
  • c/src/lib/libbsp/mips/malta/include/bsp.h

    rf3a66a3 r2681fc4  
    1717#ifndef _BSP_H
    1818#define _BSP_H
     19
     20#ifndef ASM
    1921
    2022#ifdef __cplusplus
     
    100102void simple_out_16( uint32_t base, uint32_t addr, uint16_t val );
    101103
     104/*
     105 * Prototypes for methods called from .S for dependency tracking
     106 */
     107void init_tlb(void);
     108void resettlb(int i);
     109
    102110#ifdef __cplusplus
    103111}
    104112#endif
    105113
     114#endif /* !ASM */
     115
    106116#endif
  • c/src/lib/libbsp/mips/malta/start/start.S

    rf3a66a3 r2681fc4  
    2121#include <bsp/regs.h>
    2222
     23#include <bsp.h>
     24
    2325#ifdef __mips16
    2426/* This file contains 32 bit assembly code.  */
  • c/src/lib/libbsp/mips/malta/startup/inittlb.c

    rf3a66a3 r2681fc4  
    1212 */
    1313
     14#include <bsp.h>
    1415#include <rtems/mips/idtcpu.h>
    1516
Note: See TracChangeset for help on using the changeset viewer.