Changeset 654c115c in rtems


Ignore:
Timestamp:
03/31/04 04:12:38 (20 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2a7f710f
Parents:
d1c60fb
Message:

2004-03-31 Ralf Corsepius <ralf_corsepius@…>

  • times, include/bsp.h, startup/bspstart.c: Convert to using c99 fixed size types.
Location:
c/src/lib/libbsp/mips/p4000
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/p4000/ChangeLog

    rd1c60fb r654c115c  
     12004-03-31      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * times, include/bsp.h, startup/bspstart.c: Convert to using c99
     4        fixed size types.
     5
    162004-03-03      Joel Sherrill <joel@OARcorp.com>
    27
  • c/src/lib/libbsp/mips/p4000/include/bsp.h

    rd1c60fb r654c115c  
    6565#define Lower_tm27_intr()
    6666
    67 extern unsigned32 mips_get_timer( void );
     67extern uint32_t  mips_get_timer( void );
    6868
    6969#define CPU_CLOCK_RATE_MHZ     (50)
     
    7575 *
    7676 *  NOTE: This macro generates a warning like "integer constant out
    77  *        of range" which is safe to ignore.  In 64 bit mode, unsigned32
     77 *        of range" which is safe to ignore.  In 64 bit mode, uint32_t 
    7878 *        types are actually 64 bits long so that comparisons between
    79  *        unsigned32 types and pointers are valid.  The warning is caused
     79 *        uint32_t  types and pointers are valid.  The warning is caused
    8080 *        by code in the delay macro that is necessary for 64 bit mode.
    8181 */
     
    8383#define rtems_bsp_delay( microseconds ) \
    8484  { \
    85      unsigned32 _end_clock = \
     85     uint32_t  _end_clock = \
    8686          mips_get_timer() + microseconds * CLOCKS_PER_MICROSECOND; \
    8787     _end_clock %= 0x100000000;  /* make sure result is 32 bits */ \
  • c/src/lib/libbsp/mips/p4000/startup/bspstart.c

    rd1c60fb r654c115c  
    4646 
    4747void bsp_postdriver_hook(void);
    48 void bsp_libc_init( void *, unsigned32, int );
     48void bsp_libc_init( void *, uint32_t, int );
    4949
    5050/*
     
    6767{
    6868    extern int end;
    69     rtems_unsigned32        heap_start;
     69    uint32_t                heap_start;
    7070
    71     heap_start = (rtems_unsigned32) &end;
     71    heap_start = (uint32_t) &end;
    7272    if (heap_start & (CPU_ALIGNMENT-1))
    7373        heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
     
    105105
    106106  BSP_Configuration.work_space_start =
    107        (void *)((unsigned64)((&end) + LIBC_HEAP_SIZE + 0x2000) & ~0x7);
     107       (void *)((uint64_t)((&end) + LIBC_HEAP_SIZE + 0x2000) & ~0x7);
    108108
    109109  /*
  • c/src/lib/libbsp/mips/p4000/times

    rd1c60fb r654c115c  
    2323Timer Source: on-CPU cycle counter
    2424
    25 Column A:RTEMS compiled with 64 bit pointers and 64 bit unsigned32 types
    26 Column B:RTEMS compiled with 32 bit pointers and 32 bit unsigned32 types
     25Column A:RTEMS compiled with 64 bit pointers and 64 bit uint32_t  types
     26Column B:RTEMS compiled with 32 bit pointers and 32 bit uint32_t  types
    2727
    2828#                          DESCRIPTION                                 A    B
Note: See TracChangeset for help on using the changeset viewer.