- Timestamp:
- 12/19/95 20:26:32 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 4442d21c
- Parents:
- 7593d56c
- Location:
- c
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
c/README.DOS
r7593d56c r8bdcfc4 1 1 # 2 # $Id$ 2 # $Id$ 3 3 # 4 4 -
c/build-tools/cklength.c
r7593d56c r8bdcfc4 12 12 * $Id$ 13 13 * $Log$ 14 * Revision 1.4 1995/10/06 20:00:38 joel 15 * SPARC merged and successfully tested w/o interrupt support 16 * 14 17 * Revision 1.3 1995/10/06 16:32:20 joel 15 18 * moved to new development machine and went to gcc 2.7.0 -
c/build-tools/eolstrip.c
r7593d56c r8bdcfc4 10 10 * $Id$ 11 11 * $Log$ 12 * Revision 1.4 1995/10/06 20:00:39 joel 13 * SPARC merged and successfully tested w/o interrupt support 14 * 12 15 * Revision 1.3 1995/10/06 16:32:21 joel 13 16 * moved to new development machine and went to gcc 2.7.0 -
c/build-tools/src/cklength.c
r7593d56c r8bdcfc4 12 12 * $Id$ 13 13 * $Log$ 14 * Revision 1.4 1995/10/06 20:00:38 joel 15 * SPARC merged and successfully tested w/o interrupt support 16 * 14 17 * Revision 1.3 1995/10/06 16:32:20 joel 15 18 * moved to new development machine and went to gcc 2.7.0 -
c/build-tools/src/eolstrip.c
r7593d56c r8bdcfc4 10 10 * $Id$ 11 11 * $Log$ 12 * Revision 1.4 1995/10/06 20:00:39 joel 13 * SPARC merged and successfully tested w/o interrupt support 14 * 12 15 * Revision 1.3 1995/10/06 16:32:21 joel 13 16 * moved to new development machine and went to gcc 2.7.0 -
c/src/exec/score/headers/interr.h
r7593d56c r8bdcfc4 13 13 * notice must appear in all copies of this file and its derivatives. 14 14 * 15 * $Id #15 * $Id$ 16 16 */ 17 17 -
c/src/exec/score/include/rtems/score/interr.h
r7593d56c r8bdcfc4 13 13 * notice must appear in all copies of this file and its derivatives. 14 14 * 15 * $Id #15 * $Id$ 16 16 */ 17 17 -
c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c
r7593d56c r8bdcfc4 1 #define STACK_CHECKER_ON2 1 /* bsp_start() 3 2 * -
c/src/lib/libbsp/m68k/mvme162/include/page_table.h
r7593d56c r8bdcfc4 6 6 * 7 7 * $Log$ 8 * Revision 1.1 1995/12/19 19:22:36 joel 9 * file lost in crash and re-added 10 * 8 11 * Revision 1.1 1995/12/05 15:29:19 joel 9 12 * 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 for6 System V/POSIX derived UNIX flavors.7 8 WARNING: The interrupt support in this directory currently will9 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 convert7 *8 * Output parameters:9 * returns - converted address10 *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 pursuant16 * to the copyright license under the clause at DFARS 252.227-7013. This17 * 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 *addr27 )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 pointer4 * to the Shared Memory Configuration Table for the UNIX5 * simulator.6 *7 * INPUT PARAMETERS:8 * localnode - local node number9 * shmcfg - address of pointer to SHM Config Table10 *11 * OUTPUT PARAMETERS:12 * *shmcfg - pointer to SHM Config Table13 *14 * NOTES: This driver is capable of supporting a practically unlimited15 * 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 pursuant22 * to the copyright license under the clause at DFARS 252.227-7013. This23 * 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 node37 );38 39 void Shm_Get_configuration(40 rtems_unsigned32 localnode,41 shm_config_table **shmcfg42 )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.length49 );50 51 BSP_shm_cfgtbl.format = SHM_BIG;52 53 BSP_shm_cfgtbl.cause_intr = Shm_Cause_interrupt_unix;54 55 #ifdef NEUTRAL_BIG56 BSP_shm_cfgtbl.convert = NULL_CONVERT;57 #else58 BSP_shm_cfgtbl.convert = CPU_swap_u32;59 #endif60 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 which4 * generates interrupts to other CPUs.5 *6 * Input parameters:7 * node - destination of this packet (0 = broadcast)8 *9 * Output parameters: NONE10 *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 pursuant16 * to the copyright license under the clause at DFARS 252.227-7013. This17 * 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 node27 )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 Routines2 *3 * This shared memory locked queue support routine need to be4 * able to lock the specified locked queue. Interrupts are5 * disabled while the queue is locked to prevent preemption6 * 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 pursuant14 * to the copyright license under the clause at DFARS 252.227-7013. This15 * 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_lock27 *28 * Initialize the lock for the specified locked queue.29 */30 31 void Shm_Initialize_lock(32 Shm_Locked_queue_Control *lq_cb33 )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 the41 * specified locked queue. It disables interrupts to prevent42 * a deadlock condition.43 */44 45 void Shm_Lock(46 Shm_Locked_queue_Control *lq_cb47 )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_Unlock60 *61 * Unlock the lock for the specified locked queue.62 */63 64 void Shm_Unlock(65 Shm_Locked_queue_Control *lq_cb66 )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.h2 *3 * This include file contains information that is included in every4 * 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 pursuant11 * to the copyright license under the clause at DFARS 252.227-7013. This12 * 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 argument25 );26 27 /* configuration information */28 29 #define CONFIGURE_MPTEST30 31 #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER32 #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER33 34 #define CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS 135 #define CONFIGURE_MP_MAXIMUM_PROXIES 036 37 #if ( NODE_NUMBER == 1 )38 #define CONFIGURE_MAXIMUM_PARTITIONS 139 #elif ( NODE_NUMBER == 2 )40 #define CONFIGURE_MAXIMUM_PARTITIONS 241 #endif42 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_close2 *3 * This routine is the terminal driver close routine.4 *5 * Input parameters:6 * major - device major number7 * minor - device minor number8 * pargb - pointer to close parameter block9 *10 * Output parameters:11 * rval - STUB_SUCCESSFUL12 *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 pursuant18 * to the copyright license under the clause at DFARS 252.227-7013. This19 * 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 *pargp31 )32 {33 return STUB_SUCCESSFUL;34 } -
c/src/tests/support/stubdr/cntrl.c
r7593d56c r8bdcfc4 1 /* Stub_control2 *3 * This routine is the terminal driver control routine.4 *5 * Input parameters:6 * major - device major number7 * minor - device minor number8 * pargp - pointer to cntrl parameter block9 *10 * Output parameters:11 * rval - STUB_SUCCESSFUL12 *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 pursuant18 * to the copyright license under the clause at DFARS 252.227-7013. This19 * 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 *pargp31 )32 {33 return STUB_SUCCESSFUL;34 }
Note: See TracChangeset
for help on using the changeset viewer.