Changeset f3eaba9a in rtems


Ignore:
Timestamp:
Aug 19, 2008, 12:41:03 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
639e131
Parents:
a9c2508
Message:

2008-08-19 Sebastian Huber <sebastian.huber@…>

  • include/bootcard.h, bootcard.c, bsplibc.c: Changed parameter types of bsp_libc_init() to match RTEMS_Malloc_Initialize().
  • bsppost.c, bsppredriverhook.c: Include bootcard.h.
  • src/irq-generic.c: Fixed warnings.
Location:
c/src/lib/libbsp/shared
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/ChangeLog

    ra9c2508 rf3eaba9a  
     12008-08-15      Allan Hessenflow <allanh@kallisti.com>
     2
     3        * src/lib/libbsp/mips/jmr3904/tools/runtest: Add bf537Stamp.
     4
     52008-08-19      Sebastian Huber <sebastian.huber@embedded-brains.de>
     6
     7        * include/bootcard.h, bootcard.c, bsplibc.c: Changed parameter types of
     8        bsp_libc_init() to match RTEMS_Malloc_Initialize().
     9
     10        * bsppost.c, bsppredriverhook.c: Include bootcard.h.
     11
     12        * src/irq-generic.c: Fixed warnings.
     13
    1142008-08-18      Joel Sherrill <joel.sherrill@oarcorp.com>
    215
  • c/src/lib/libbsp/shared/bootcard.c

    ra9c2508 rf3eaba9a  
    8282       * work area up to the work space start as heap area.
    8383       */
    84       heap_size_default = (char *) Configuration.work_space_start
    85         - (char *) work_area_start;
     84      heap_size_default = (size_t) ((char *) Configuration.work_space_start
     85        - (char *) work_area_start);
    8686
    8787      /* Keep it as a multiple of 16 bytes */
     
    9999    }
    100100
    101     bsp_libc_init( heap_start, (uint32_t) heap_size, 0);
     101    bsp_libc_init( heap_start, heap_size, 0);
    102102
    103103    return RTEMS_SUCCESSFUL;
  • c/src/lib/libbsp/shared/bsplibc.c

    ra9c2508 rf3eaba9a  
    1010#include <rtems/libcsupport.h>
    1111
     12#include <bsp/bootcard.h>
     13
    1214void bsp_libc_init(
    13   void       *heap_start,
    14   uint32_t    heap_size,
    15   int         use_sbrk
     15  void   *heap_start,
     16  size_t  heap_size,
     17  size_t  sbrk_amount
    1618)
    1719{
    18     RTEMS_Malloc_Initialize( heap_start, heap_size, use_sbrk );
     20    RTEMS_Malloc_Initialize( heap_start, heap_size, sbrk_amount );
    1921
    2022    /*
  • c/src/lib/libbsp/shared/bsppost.c

    ra9c2508 rf3eaba9a  
    1515 */
    1616
     17#include <fcntl.h>
     18
    1719#include <rtems.h>
    1820#include <rtems/libcsupport.h>
    19 #include <fcntl.h>
     21
     22#include <bsp/bootcard.h>
    2023
    2124void bsp_postdriver_hook(void)
  • c/src/lib/libbsp/shared/bsppredriverhook.c

    ra9c2508 rf3eaba9a  
    1212 */
    1313
     14#include <bsp/bootcard.h>
     15
    1416void bsp_predriver_hook( void )
    1517{
  • c/src/lib/libbsp/shared/include/bootcard.h

    ra9c2508 rf3eaba9a  
    3737#endif /* __cplusplus */
    3838
    39 void bsp_start( void);
     39void bsp_start(void);
    4040
    41 void bsp_pretasking_hook( void);
     41void bsp_pretasking_hook(void);
    4242
    43 void bsp_predriver_hook( void);
     43void bsp_predriver_hook(void);
    4444
    45 void bsp_postdriver_hook( void);
     45void bsp_postdriver_hook(void);
    4646
    47 void bsp_cleanup( void);
     47void bsp_cleanup(void);
    4848
    4949#ifdef BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     
    6262int boot_card( int argc, char **argv, char **envp);
    6363
    64 /*
    65  * FIXME: Nearly every BSP declares this function in the BSP startup file
    66  * separately and uses the implementation in bsplibc.c.
    67  * Why differ the parameter types from RTEMS_Malloc_Initialize()?
    68  */
    69 void bsp_libc_init( void *heap_start, uint32_t heap_size, int use_sbrk);
     64void bsp_libc_init( void *heap_start, size_t heap_size, size_t sbrk_amount);
    7065
    7166#ifdef __cplusplus
  • c/src/lib/libbsp/shared/src/irq-generic.c

    ra9c2508 rf3eaba9a  
    5353        rtems_vector_number s = index % 8;
    5454        if (unique) {
    55                 bsp_interrupt_handler_unique_table [i] |= 0x1 << s;
     55                bsp_interrupt_handler_unique_table [i] |= (uint8_t) 0x1 << s;
    5656        } else {
    5757                bsp_interrupt_handler_unique_table [i] &= ~((uint8_t) 0x1 << s);
     
    5959}
    6060
    61 static inline bool bsp_interrupt_is_initialized()
     61static inline bool bsp_interrupt_is_initialized(void)
    6262{
    6363        return bsp_interrupt_is_handler_unique( BSP_INTERRUPT_HANDLER_TABLE_SIZE);
    6464}
    6565
    66 static inline void bsp_interrupt_set_initialized()
     66static inline void bsp_interrupt_set_initialized(void)
    6767{
    6868        bsp_interrupt_set_handler_unique( BSP_INTERRUPT_HANDLER_TABLE_SIZE, true);
Note: See TracChangeset for help on using the changeset viewer.