Changeset 88d594a in rtems for c/src/lib


Ignore:
Timestamp:
05/24/95 21:39:42 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5b9d6ddf
Parents:
bf61e45c
Message:

Fully tested on all in-house targets

Location:
c/src/lib
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/hppa1.1/simhppa/startup/bspstart.c

    rbf61e45c r88d594a  
    11/*
    2  *      @(#)bspstart.c  1.13 - 95/04/25
     2 *      @(#)bspstart.c  1.14 - 95/05/16
    33 *     
    44 */
     
    2525 *  notice must appear in all copies of this file and its derivatives.
    2626 *
    27  *  $Id$
     27 *  bspstart.c,v 1.2 1995/05/09 20:17:33 joel Exp
    2828 */
    2929
     
    256256#ifdef hppa7200
    257257    /*
    258      * Use DR0 if supported
     258     * Use HPPA_DR0 if supported
    259259     */
    260260    {
    261261        int dr0;
    262         HPPA_ASM_MFCPU(DR0, dr0);
     262        HPPA_ASM_MFCPU(HPPA_DR0, dr0);
    263263        cpu_number = (dr0 >> 4) & 0x7;
    264264    }
  • c/src/lib/libbsp/i960/cvme961/shmsupp/lock.c

    rbf61e45c r88d594a  
    1919
    2020#include <rtems.h>
    21 #include "cpu.h"
    22 #include "bsp.h"
    23 #include "shm.h"
     21#include <bsp.h>
     22#include <shm.h>
    2423
    2524/*
  • c/src/lib/libbsp/m68k/idp/clock/ckinit.c

    rbf61e45c r88d594a  
    2727#include <stdlib.h>
    2828
    29 #include "rtems.h"
    30 #include "clockdrv.h"
    31 #include "bsp.h"
    32 #include "cpu.h"
     29#include <rtems.h>
     30#include <clockdrv.h>
     31#include <bsp.h>
    3332
    3433rtems_unsigned32 Clock_isrs;        /* ISRs until next tick */
  • c/src/lib/libbsp/m68k/idp/include/bsp.h

    rbf61e45c r88d594a  
    99#define __IDP_BSP_H
    1010
    11 #include "rtems.h"
    12 #include "cpu.h"
    13 #include "console.h"
    14 #include "mc68230.h"
    15 #include "mc68681.h"
     11#include <rtems.h>
     12#include <console.h>
     13#include <mc68230.h>
     14#include <mc68681.h>
    1615
    1716/*
  • c/src/lib/libbsp/m68k/idp/startup/bspstart.c

    rbf61e45c r88d594a  
    2121 */
    2222
    23 #include "rtems.h"
    24 #include "bsp.h"
    25 #include "cpu.h"
    26 #include "libcsupport.h"
     23#include <rtems.h>
     24#include <bsp.h>
     25#include <libcsupport.h>
    2726
    2827unsigned char *duart_base;
  • c/src/lib/libbsp/m68k/idp/timer/timer.c

    rbf61e45c r88d594a  
    2828
    2929
    30 #include "rtems.h"
    31 #include "cpu.h"
    32 #include "bsp.h"
    33 #include "mc68230.h"
     30#include <rtems.h>
     31#include <bsp.h>
     32#include <mc68230.h>
    3433
    3534#define TIMER_VECTOR 0x4D
  • c/src/lib/libbsp/shmdr/poll.c

    rbf61e45c r88d594a  
    1717 *  notice must appear in all copies of this file and its derivatives.
    1818 *
    19  *  $Id$
     19 *  poll.c,v 1.2 1995/05/09 20:22:57 joel Exp
    2020 */
    2121
    2222#include <rtems.h>
     23#include <rtems/sysstate.h>
    2324#include "shm.h"
    2425#include "clockdrv.h"
     
    3031  Clock_isr( 0 );             /* invoke standard clock ISR */
    3132
    32   /* enable_tracing(); */
    33   /* ticks += 1; */
    34   Shm_Lock( Shm_Local_receive_queue );
    35     tmpfront = Shm_Local_receive_queue->front;
    36   Shm_Unlock( Shm_Local_receive_queue );
    37   if ( Shm_Convert(tmpfront) == Shm_Locked_queue_End_of_list ) return;
    38   rtems_multiprocessing_announce();
    39   Shm_Interrupt_count++;
     33
     34  /*
     35   * Check for msgs only if we are "up"
     36   * This avoids a race condition where we may get a clock
     37   * interrupt before MPCI has completed its init
     38   */
     39 
     40  if (_System_state_Is_up(_System_state_Get()))
     41  {
     42      /* enable_tracing(); */
     43      /* ticks += 1; */
     44      Shm_Lock( Shm_Local_receive_queue );
     45      tmpfront = Shm_Local_receive_queue->front;
     46      Shm_Unlock( Shm_Local_receive_queue );
     47      if ( Shm_Convert(tmpfront) == Shm_Locked_queue_End_of_list ) return;
     48      rtems_multiprocessing_announce();
     49      Shm_Interrupt_count++;
     50  }
    4051}
  • c/src/lib/libbsp/shmdr/shm.h

    rbf61e45c r88d594a  
    1515 *  notice must appear in all copies of this file and its derivatives.
    1616 *
    17  *  $Id$
     17 *  shm.h,v 1.2 1995/05/09 20:23:03 joel Exp
    1818 */
    1919
     
    2424extern "C" {
    2525#endif
    26 
    27 #include <cpu.h>
    2826
    2927/*  The information contained in the Node Status, Locked Queue, and
  • c/src/lib/libbsp/shmdr/shm_driver.h

    rbf61e45c r88d594a  
    1515 *  notice must appear in all copies of this file and its derivatives.
    1616 *
    17  *  $Id$
     17 *  shm.h,v 1.2 1995/05/09 20:23:03 joel Exp
    1818 */
    1919
     
    2424extern "C" {
    2525#endif
    26 
    27 #include <cpu.h>
    2826
    2927/*  The information contained in the Node Status, Locked Queue, and
  • c/src/lib/libc/__brk.c

    rbf61e45c r88d594a  
     1#if !defined(RTEMS_UNIX)
     2
    13/*
    24 *  RTEMS "Broken" __brk/__sbrk Implementation
     
    1315 *  notice must appear in all copies of this file and its derivatives.
    1416 *
    15  *  $Id$
     17 *  __brk.c,v 1.2 1995/05/09 20:24:28 joel Exp
    1618 */
    1719
     
    3941  return -1;
    4042}
     43
     44#endif
  • c/src/lib/libc/__gettod.c

    rbf61e45c r88d594a  
    1212 *  notice must appear in all copies of this file and its derivatives.
    1313 *
    14  *  $Id$
     14 *  __gettod.c,v 1.2 1995/05/09 20:24:31 joel Exp
    1515 */
    1616
     
    2020#include <sys/reent.h>
    2121#endif
     22
    2223#include <time.h>
    2324#include <sys/time.h>
     25
    2426#include <errno.h>
    2527#include <assert.h>
     
    3032
    3133int gettimeofday(
    32    struct timeval  *tp,
    33    struct timezone *tzp
     34  struct timeval  *tp,
     35  struct timezone *tzp
    3436)
    3537{
     
    3739  rtems_clock_time_value time;
    3840
    39   if ( !tp || !tzp ) {
     41  if ( !tp ) {
    4042    errno = EFAULT;
    4143    return -1;
     
    5254  tp->tv_usec = time.microseconds;
    5355
    54 #if 0
    55   tzp->minuteswest = timezone / 60; /* from seconds to minutes */
    56   tzp->dsttime = daylight;
    57 #endif
    58 
    5956  /*
    6057   * newlib does not have timezone and daylight savings time
     
    6259   */
    6360
    64   tzp->tz_minuteswest = 0;  /* at UTC */
    65   tzp->tz_dsttime = 0;      /* no daylight savings */
     61  if ( tzp ) {
     62    tzp->tz_minuteswest = 0;  /* at UTC */
     63    tzp->tz_dsttime = 0;      /* no daylight savings */
     64#if 0
     65  tzp->minuteswest = timezone / 60; /* from seconds to minutes */
     66  tzp->dsttime = daylight;
     67#endif
     68  }
    6669  return 0;
    6770}
    6871
     72#if defined(RTEMS_NEWLIB)
     73
     74#if 0
    6975/*
    70  *  "Reentrant" versions of the above routines implemented above.
     76 *  "Reentrant" version
    7177 */
    7278
    73 #if 0
    7479int _gettimeofday_r(
    75    struct _reent   *ignored_reentrancy_stuff,
    76    struct timeval  *tp,
    77    struct timezone *tzp
     80  struct _reent   *ignored_reentrancy_stuff,
     81  struct timeval  *tp,
     82  struct timezone *tzp
    7883)
    7984{
     
    8287#endif
    8388
     89/*
     90 *  "System call" version
     91 */
     92
     93int _gettimeofday(
     94  struct timeval  *tp,
     95  struct timezone *tzp
     96)
     97{
     98  return gettimeofday( tp, tzp );
     99}
     100
     101#endif /* defined(RTEMS_NEWLIB) */
     102
    84103#endif
  • c/src/lib/libc/newlibc.c

    rbf61e45c r88d594a  
    11/*
    2  *      @(#)newlibc.c   1.8 - 95/04/25
     2 *      @(#)newlibc.c   1.9 - 95/05/16
    33 *     
    44 */
     
    77
    88/*
    9  *  File:       $RCSfile$
     9 *  File:       newlibc.c,v
    1010 *  Project:    PixelFlow
    1111 *  Created:    94/12/7
    12  *  Revision:   $Revision$
    13  *  Last Mod:   $Date$
     12 *  Revision:   1.2
     13 *  Last Mod:   1995/05/09 20:24:37
    1414 *
    1515 *  COPYRIGHT (c) 1994 by Division Incorporated
     
    3636 *  NOTE:
    3737 *
    38  *  $Id$
     38 *  newlibc.c,v 1.2 1995/05/09 20:24:37 joel Exp
    3939 *
    4040 */
  • c/src/lib/libmisc/stackchk/check.c

    rbf61e45c r88d594a  
    330330   */
    331331
     332  base += 4;
    332333  for (ebase = base + length; base < ebase; base++)
    333334      if (*base != U32_PATTERN)
Note: See TracChangeset for help on using the changeset viewer.