Changeset 8bdcfc4 in rtems


Ignore:
Timestamp:
12/19/95 20:26:32 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4442d21c
Parents:
7593d56c
Message:

changes remerged after disk crash -- history lost

Files:
23 edited

Legend:

Unmodified
Added
Removed
  • c/README.DOS

    r7593d56c r8bdcfc4  
    11#
    2 #   $Id$ 
     2#   $Id$
    33#
    44
  • c/build-tools/cklength.c

    r7593d56c r8bdcfc4  
    1212 * $Id$
    1313 * $Log$
     14 * Revision 1.4  1995/10/06  20:00:38  joel
     15 * SPARC merged and successfully tested w/o interrupt support
     16 *
    1417 * Revision 1.3  1995/10/06 16:32:20  joel
    1518 * moved to new development machine and went to gcc 2.7.0
  • c/build-tools/eolstrip.c

    r7593d56c r8bdcfc4  
    1010 * $Id$
    1111 * $Log$
     12 * Revision 1.4  1995/10/06  20:00:39  joel
     13 * SPARC merged and successfully tested w/o interrupt support
     14 *
    1215 * Revision 1.3  1995/10/06 16:32:21  joel
    1316 * moved to new development machine and went to gcc 2.7.0
  • c/build-tools/src/cklength.c

    r7593d56c r8bdcfc4  
    1212 * $Id$
    1313 * $Log$
     14 * Revision 1.4  1995/10/06  20:00:38  joel
     15 * SPARC merged and successfully tested w/o interrupt support
     16 *
    1417 * Revision 1.3  1995/10/06 16:32:20  joel
    1518 * moved to new development machine and went to gcc 2.7.0
  • c/build-tools/src/eolstrip.c

    r7593d56c r8bdcfc4  
    1010 * $Id$
    1111 * $Log$
     12 * Revision 1.4  1995/10/06  20:00:39  joel
     13 * SPARC merged and successfully tested w/o interrupt support
     14 *
    1215 * Revision 1.3  1995/10/06 16:32:21  joel
    1316 * moved to new development machine and went to gcc 2.7.0
  • c/src/exec/score/headers/interr.h

    r7593d56c r8bdcfc4  
    1313 *  notice must appear in all copies of this file and its derivatives.
    1414 *
    15  *  $Id#
     15 *  $Id$
    1616 */
    1717
  • c/src/exec/score/include/rtems/score/interr.h

    r7593d56c r8bdcfc4  
    1313 *  notice must appear in all copies of this file and its derivatives.
    1414 *
    15  *  $Id#
     15 *  $Id$
    1616 */
    1717
  • c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c

    r7593d56c r8bdcfc4  
    1 #define STACK_CHECKER_ON
    21/*  bsp_start()
    32 *
  • c/src/lib/libbsp/m68k/mvme162/include/page_table.h

    r7593d56c r8bdcfc4  
    66 *
    77 *  $Log$
     8 * Revision 1.1  1995/12/19  19:22:36  joel
     9 * file lost in crash and re-added
     10 *
    811 * Revision 1.1  1995/12/05  15:29:19  joel
    912 * added.. submitted by  Eric Vaitl <vaitl@viasat.com>
  • c/src/lib/libbsp/unix/posix/shmsupp/README

    r7593d56c r8bdcfc4  
    1 #
    2 #  $Id$
    3 #
    4 
    5 This directory contains the SHM driver support files for
    6 System V/POSIX derived UNIX flavors.
    7 
    8 WARNING: The interrupt support in this directory currently will
    9          only work in a homogeneous system.
  • c/src/lib/libbsp/unix/posix/shmsupp/addrconv.c

    r7593d56c r8bdcfc4  
    1 /*  rtems_unsigned32 *Shm_Convert_address( addr )
    2  *
    3  *  No address range conversion is required.
    4  *
    5  *  Input parameters:
    6  *    addr    - address to convert
    7  *
    8  *  Output parameters:
    9  *    returns - converted address
    10  *
    11  *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
    12  *  On-Line Applications Research Corporation (OAR).
    13  *  All rights assigned to U.S. Government, 1994.
    14  *
    15  *  This material may be reproduced by or for the U.S. Government pursuant
    16  *  to the copyright license under the clause at DFARS 252.227-7013.  This
    17  *  notice must appear in all copies of this file and its derivatives.
    18  *
    19  *  $Id$
    20  */
    21 
    22 #include <bsp.h>
    23 #include <shm.h>
    24 
    25 void *Shm_Convert_address(
    26   void *addr
    27 )
    28 {
    29   return ( addr );
    30 }
  • c/src/lib/libbsp/unix/posix/shmsupp/getcfg.c

    r7593d56c r8bdcfc4  
    1 /*  void Shm_get_config( localnode, &shmcfg )
    2  *
    3  *  This routine initializes, if necessary, and returns a pointer
    4  *  to the Shared Memory Configuration Table for the UNIX
    5  *  simulator.
    6  *
    7  *  INPUT PARAMETERS:
    8  *    localnode - local node number
    9  *    shmcfg    - address of pointer to SHM Config Table
    10  *
    11  *  OUTPUT PARAMETERS:
    12  *    *shmcfg   - pointer to SHM Config Table
    13  *
    14  *  NOTES:  This driver is capable of supporting a practically unlimited
    15  *          number of nodes.
    16  *
    17  *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
    18  *  On-Line Applications Research Corporation (OAR).
    19  *  All rights assigned to U.S. Government, 1994.
    20  *
    21  *  This material may be reproduced by or for the U.S. Government pursuant
    22  *  to the copyright license under the clause at DFARS 252.227-7013.  This
    23  *  notice must appear in all copies of this file and its derivatives.
    24  *
    25  *  $Id$
    26  */
    27 
    28 #include <bsp.h>
    29 #include <shm.h>
    30 
    31 shm_config_table BSP_shm_cfgtbl;
    32 
    33 int              semid;
    34 
    35 void Shm_Cause_interrupt_unix(
    36   rtems_unsigned32 node
    37 );
    38 
    39 void Shm_Get_configuration(
    40   rtems_unsigned32   localnode,
    41   shm_config_table **shmcfg
    42 )
    43 {
    44   _CPU_SHM_Init(
    45     Shm_Maximum_nodes,
    46     Shm_Is_master_node(),
    47     (void **)&BSP_shm_cfgtbl.base,
    48     (unsigned32 *)&BSP_shm_cfgtbl.length
    49   );
    50 
    51   BSP_shm_cfgtbl.format       = SHM_BIG;
    52 
    53   BSP_shm_cfgtbl.cause_intr   = Shm_Cause_interrupt_unix;
    54 
    55 #ifdef NEUTRAL_BIG
    56   BSP_shm_cfgtbl.convert      = NULL_CONVERT;
    57 #else
    58   BSP_shm_cfgtbl.convert      = CPU_swap_u32;
    59 #endif
    60 
    61   if ( _CPU_SHM_Get_vector() ) {
    62     BSP_shm_cfgtbl.poll_intr    = INTR_MODE;
    63     BSP_shm_cfgtbl.Intr.address = (vol_u32 *) _CPU_Get_pid(); /* process id */
    64     BSP_shm_cfgtbl.Intr.value   = _CPU_SHM_Get_vector();  /* signal to send */
    65     BSP_shm_cfgtbl.Intr.length  = LONG;
    66   } else {
    67     BSP_shm_cfgtbl.poll_intr    = POLLED_MODE;
    68     BSP_shm_cfgtbl.Intr.address = NO_INTERRUPT;
    69     BSP_shm_cfgtbl.Intr.value   = NO_INTERRUPT;
    70     BSP_shm_cfgtbl.Intr.length  = NO_INTERRUPT;
    71   }
    72 
    73   *shmcfg = &BSP_shm_cfgtbl;
    74 }
  • c/src/lib/libbsp/unix/posix/shmsupp/intr.c

    r7593d56c r8bdcfc4  
    1 /*  void Shm_interrupt_unix( node )
    2  *
    3  *  This routine is the shared memory driver routine which
    4  *  generates interrupts to other CPUs.
    5  *
    6  *  Input parameters:
    7  *    node          - destination of this packet (0 = broadcast)
    8  *
    9  *  Output parameters: NONE
    10  *
    11  *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
    12  *  On-Line Applications Research Corporation (OAR).
    13  *  All rights assigned to U.S. Government, 1994.
    14  *
    15  *  This material may be reproduced by or for the U.S. Government pursuant
    16  *  to the copyright license under the clause at DFARS 252.227-7013.  This
    17  *  notice must appear in all copies of this file and its derivatives.
    18  *
    19  *  $Id$
    20  */
    21 
    22 #include <bsp.h>
    23 #include <shm.h>
    24 
    25 void Shm_Cause_interrupt_unix(
    26   rtems_unsigned32 node
    27 )
    28 {
    29   Shm_Interrupt_information *intr;
    30   intr = &Shm_Interrupt_table[node];
    31  
    32   _CPU_SHM_Send_interrupt( (int) intr->address, (int) intr->value );
    33 }
  • c/src/lib/libbsp/unix/posix/shmsupp/lock.c

    r7593d56c r8bdcfc4  
    1 /*  Shared Memory Lock Routines
    2  *
    3  *  This shared memory locked queue support routine need to be
    4  *  able to lock the specified locked queue.  Interrupts are
    5  *  disabled while the queue is locked to prevent preemption
    6  *  and deadlock when two tasks poll for the same lock.
    7  *  previous level.
    8  *
    9  *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
    10  *  On-Line Applications Research Corporation (OAR).
    11  *  All rights assigned to U.S. Government, 1994.
    12  *
    13  *  This material may be reproduced by or for the U.S. Government pursuant
    14  *  to the copyright license under the clause at DFARS 252.227-7013.  This
    15  *  notice must appear in all copies of this file and its derivatives.
    16  *
    17  *  $Id$
    18  */
    19 
    20 #include <bsp.h>
    21 #include <shm.h>
    22 
    23 extern int      semid;
    24 
    25 /*
    26  *  Shm_Initialize_lock
    27  *
    28  *  Initialize the lock for the specified locked queue.
    29  */
    30 
    31 void Shm_Initialize_lock(
    32   Shm_Locked_queue_Control *lq_cb
    33 )
    34 {
    35   lq_cb->lock = lq_cb - Shm_Locked_queues;
    36 }
    37 
    38 /*  Shm_Lock( &lq_cb )
    39  *
    40  *  This shared memory locked queue support routine locks the
    41  *  specified locked queue.  It disables interrupts to prevent
    42  *  a deadlock condition.
    43  */
    44 
    45 void Shm_Lock(
    46   Shm_Locked_queue_Control *lq_cb
    47 )
    48 {
    49   rtems_unsigned32   isr_level;
    50 
    51   rtems_interrupt_disable( isr_level );
    52 
    53   Shm_isrstat = isr_level;
    54 
    55   _CPU_SHM_Lock( lq_cb->lock );
    56 }
    57 
    58 /*
    59  *  Shm_Unlock
    60  *
    61  *  Unlock the lock for the specified locked queue.
    62  */
    63 
    64 void Shm_Unlock(
    65   Shm_Locked_queue_Control *lq_cb
    66 )
    67 {
    68   rtems_unsigned32   isr_level;
    69 
    70   _CPU_SHM_Unlock( lq_cb->lock );
    71 
    72   isr_level = Shm_isrstat;
    73   rtems_interrupt_enable( isr_level );
    74 }
  • c/src/tests/mptests/mp12/system.h

    r7593d56c r8bdcfc4  
    1 /*  system.h
    2  *
    3  *  This include file contains information that is included in every
    4  *  function in the test set.
    5  *
    6  *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
    7  *  On-Line Applications Research Corporation (OAR).
    8  *  All rights assigned to U.S. Government, 1994.
    9  *
    10  *  This material may be reproduced by or for the U.S. Government pursuant
    11  *  to the copyright license under the clause at DFARS 252.227-7013.  This
    12  *  notice must appear in all copies of this file and its derivatives.
    13  *
    14  *  $Id$
    15  */
    16 
    17 #include <tmacros.h>
    18 
    19 #define PT_NAME       rtems_build_name( 'P', 'A', 'R', '\0' )
    20 
    21 /* functions */
    22 
    23 rtems_task Init(
    24   rtems_task_argument argument
    25 );
    26 
    27 /* configuration information */
    28  
    29 #define CONFIGURE_MPTEST
    30  
    31 #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
    32 #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
    33 
    34 #define CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS     1
    35 #define CONFIGURE_MP_MAXIMUM_PROXIES            0
    36  
    37 #if ( NODE_NUMBER == 1 )
    38 #define CONFIGURE_MAXIMUM_PARTITIONS          1
    39 #elif ( NODE_NUMBER == 2 )
    40 #define CONFIGURE_MAXIMUM_PARTITIONS          2
    41 #endif
    42 
    43 #include <confdefs.h>
    44 
    45 /* variables */
    46 
    47 TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
    48 TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
    49 
    50 TEST_EXTERN rtems_id   Partition_id[ 2 ];   /* array of partition ids */
    51 TEST_EXTERN rtems_name Partition_name[ 2 ]; /* array of partition names */
    52 
    53 /* end of include file */
  • c/src/tests/support/stubdr/close.c

    r7593d56c r8bdcfc4  
    1 /*  Stub_close
    2  *
    3  *  This routine is the terminal driver close routine.
    4  *
    5  *  Input parameters:
    6  *    major - device major number
    7  *    minor - device minor number
    8  *    pargb - pointer to close parameter block
    9  *
    10  *  Output parameters:
    11  *    rval       - STUB_SUCCESSFUL
    12  *
    13  *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
    14  *  On-Line Applications Research Corporation (OAR).
    15  *  All rights assigned to U.S. Government, 1994.
    16  *
    17  *  This material may be reproduced by or for the U.S. Government pursuant
    18  *  to the copyright license under the clause at DFARS 252.227-7013.  This
    19  *  notice must appear in all copies of this file and its derivatives.
    20  *
    21  *  $Id$
    22  */
    23 
    24 #include <rtems.h>
    25 #include "stubdrv.h"
    26 
    27 rtems_device_driver Stub_close(
    28   rtems_device_major_number major,
    29   rtems_device_minor_number minor,
    30   void *pargp
    31 )
    32 {
    33   return STUB_SUCCESSFUL;
    34 }
  • c/src/tests/support/stubdr/cntrl.c

    r7593d56c r8bdcfc4  
    1 /*  Stub_control
    2  *
    3  *  This routine is the terminal driver control routine.
    4  *
    5  *  Input parameters:
    6  *    major - device major number
    7  *    minor - device minor number
    8  *    pargp - pointer to cntrl parameter block
    9  *
    10  *  Output parameters:
    11  *    rval       - STUB_SUCCESSFUL
    12  *
    13  *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
    14  *  On-Line Applications Research Corporation (OAR).
    15  *  All rights assigned to U.S. Government, 1994.
    16  *
    17  *  This material may be reproduced by or for the U.S. Government pursuant
    18  *  to the copyright license under the clause at DFARS 252.227-7013.  This
    19  *  notice must appear in all copies of this file and its derivatives.
    20  *
    21  *  $Id$
    22  */
    23 
    24 #include <rtems.h>
    25 #include "stubdrv.h"
    26 
    27 rtems_device_driver Stub_control(
    28   rtems_device_major_number major,
    29   rtems_device_minor_number minor,
    30   void *pargp
    31 )
    32 {
    33   return STUB_SUCCESSFUL;
    34 }
  • cpukit/score/include/rtems/score/interr.h

    r7593d56c r8bdcfc4  
    1313 *  notice must appear in all copies of this file and its derivatives.
    1414 *
    15  *  $Id#
     15 *  $Id$
    1616 */
    1717
  • testsuites/mptests/mp12/system.h

    r7593d56c r8bdcfc4  
    1 /*  system.h
    2  *
    3  *  This include file contains information that is included in every
    4  *  function in the test set.
    5  *
    6  *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
    7  *  On-Line Applications Research Corporation (OAR).
    8  *  All rights assigned to U.S. Government, 1994.
    9  *
    10  *  This material may be reproduced by or for the U.S. Government pursuant
    11  *  to the copyright license under the clause at DFARS 252.227-7013.  This
    12  *  notice must appear in all copies of this file and its derivatives.
    13  *
    14  *  $Id$
    15  */
    16 
    17 #include <tmacros.h>
    18 
    19 #define PT_NAME       rtems_build_name( 'P', 'A', 'R', '\0' )
    20 
    21 /* functions */
    22 
    23 rtems_task Init(
    24   rtems_task_argument argument
    25 );
    26 
    27 /* configuration information */
    28  
    29 #define CONFIGURE_MPTEST
    30  
    31 #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
    32 #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
    33 
    34 #define CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS     1
    35 #define CONFIGURE_MP_MAXIMUM_PROXIES            0
    36  
    37 #if ( NODE_NUMBER == 1 )
    38 #define CONFIGURE_MAXIMUM_PARTITIONS          1
    39 #elif ( NODE_NUMBER == 2 )
    40 #define CONFIGURE_MAXIMUM_PARTITIONS          2
    41 #endif
    42 
    43 #include <confdefs.h>
    44 
    45 /* variables */
    46 
    47 TEST_EXTERN rtems_id   Task_id[ 4 ];     /* array of task ids */
    48 TEST_EXTERN rtems_name Task_name[ 4 ];   /* array of task names */
    49 
    50 TEST_EXTERN rtems_id   Partition_id[ 2 ];   /* array of partition ids */
    51 TEST_EXTERN rtems_name Partition_name[ 2 ]; /* array of partition names */
    52 
    53 /* end of include file */
  • tools/build/cklength.c

    r7593d56c r8bdcfc4  
    1212 * $Id$
    1313 * $Log$
     14 * Revision 1.4  1995/10/06  20:00:38  joel
     15 * SPARC merged and successfully tested w/o interrupt support
     16 *
    1417 * Revision 1.3  1995/10/06 16:32:20  joel
    1518 * moved to new development machine and went to gcc 2.7.0
  • tools/build/eolstrip.c

    r7593d56c r8bdcfc4  
    1010 * $Id$
    1111 * $Log$
     12 * Revision 1.4  1995/10/06  20:00:39  joel
     13 * SPARC merged and successfully tested w/o interrupt support
     14 *
    1215 * Revision 1.3  1995/10/06 16:32:21  joel
    1316 * moved to new development machine and went to gcc 2.7.0
  • tools/build/src/cklength.c

    r7593d56c r8bdcfc4  
    1212 * $Id$
    1313 * $Log$
     14 * Revision 1.4  1995/10/06  20:00:38  joel
     15 * SPARC merged and successfully tested w/o interrupt support
     16 *
    1417 * Revision 1.3  1995/10/06 16:32:20  joel
    1518 * moved to new development machine and went to gcc 2.7.0
  • tools/build/src/eolstrip.c

    r7593d56c r8bdcfc4  
    1010 * $Id$
    1111 * $Log$
     12 * Revision 1.4  1995/10/06  20:00:39  joel
     13 * SPARC merged and successfully tested w/o interrupt support
     14 *
    1215 * Revision 1.3  1995/10/06 16:32:21  joel
    1316 * moved to new development machine and went to gcc 2.7.0
Note: See TracChangeset for help on using the changeset viewer.