Changeset f16a6fe7 in rtems


Ignore:
Timestamp:
May 5, 2009, 7:37:28 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
e8de5c7
Parents:
4848b56
Message:

2009-05-05 Joel Sherrill <joel.sherrill@…>

  • score/include/rtems/score/heap.h, score/inline/rtems/score/address.inl, score/inline/rtems/score/heap.inl, score/inline/rtems/score/object.inl, score/inline/rtems/score/priority.inl, score/inline/rtems/score/tod.inl: Remove warnings.
Location:
cpukit
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r4848b56 rf16a6fe7  
     12009-05-05      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * score/include/rtems/score/heap.h,
     4        score/inline/rtems/score/address.inl,
     5        score/inline/rtems/score/heap.inl,
     6        score/inline/rtems/score/object.inl,
     7        score/inline/rtems/score/priority.inl,
     8        score/inline/rtems/score/tod.inl: Remove warnings.
     9
    1102009-05-05      Sebastian Huber <sebastian.huber@embedded-brains.de>
    211
  • cpukit/score/include/rtems/score/heap.h

    r4848b56 rf16a6fe7  
    101101 */
    102102
    103 #define HEAP_PREV_USED    1     /* indicates previous block is in use */
     103#define HEAP_PREV_USED    1u    /* indicates previous block is in use */
    104104
    105105/**
  • cpukit/score/inline/rtems/score/address.inl

    r4848b56 rf16a6fe7  
    8282 *         dependent on an addresses being thirty two bits.
    8383 */
    84 RTEMS_INLINE_ROUTINE uint32_t  _Addresses_Subtract (
     84RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract (
    8585  void *left,
    8686  void *right
  • cpukit/score/inline/rtems/score/heap.inl

    r4848b56 rf16a6fe7  
    377377 *          allocated to the heap.
    378378 */
    379 RTEMS_INLINE_ROUTINE uint32_t _Heap_Get_size (
    380   Heap_Control *the_heap
    381 )
    382 {
    383   return the_heap->end - the_heap->begin;
     379RTEMS_INLINE_ROUTINE int32_t _Heap_Get_size (
     380  Heap_Control *the_heap
     381)
     382{
     383  return _Addresses_Subtract( the_heap->end, the_heap->begin );
    384384}
    385385
  • cpukit/score/inline/rtems/score/object.inl

    r4848b56 rf16a6fe7  
    108108 *  @return This method returns the class portion of the specified object ID.
    109109 */
    110 RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index(
     110RTEMS_INLINE_ROUTINE Objects_Maximum _Objects_Get_index(
    111111  Objects_Id id
    112112)
  • cpukit/score/inline/rtems/score/priority.inl

    r4848b56 rf16a6fe7  
    9494)
    9595{
    96   return (0x8000 >> bit_number);
     96  return (0x8000u >> bit_number);
    9797}
    9898 
  • cpukit/score/inline/rtems/score/tod.inl

    r4848b56 rf16a6fe7  
    5959)
    6060{
    61   ISR_Level level;
     61  ISR_Level       level;
    6262  struct timespec now;
     63  suseconds_t     useconds;
    6364
    6465  _ISR_Disable(level);
     
    6667  _ISR_Enable(level);
    6768
     69  useconds = (suseconds_t)now.tv_nsec;
     70  useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
     71
    6872  time->tv_sec  = now.tv_sec;
    69   time->tv_usec = now.tv_nsec / TOD_NANOSECONDS_PER_MICROSECOND;
     73  time->tv_usec = useconds;
    7074}
    7175
Note: See TracChangeset for help on using the changeset viewer.