Changeset b48cfa9 in rtems for c


Ignore:
Timestamp:
Dec 4, 2008, 5:18:51 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.9
Children:
b6e3a7e2
Parents:
912488de
Message:

2008-12-04 Joel Sherrill <joel.sherrill@…>

  • psim-bottom, psim-gdb-bottom, psim-shared, psim-top.in: Add ability to force psim configuration to include System V IPC devices even when the test does not appear to be multiprocessing. This is used by some RTEMS application developers for system simulation and could be used to simulate a framebuffer if a UNIX process mirrored the buffer.
Location:
c/src/lib/libbsp/powerpc/psim/tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/tools/ChangeLog

    r912488de rb48cfa9  
     12008-12-04      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * psim-bottom, psim-gdb-bottom, psim-shared, psim-top.in: Add ability
     4        to force psim configuration to include System V IPC devices even when
     5        the test does not appear to be multiprocessing. This is used by some
     6        RTEMS application developers for system simulation and could be used
     7        to simulate a framebuffer if a UNIX process mirrored the buffer.
     8
    192008-09-08      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • c/src/lib/libbsp/powerpc/psim/tools/psim-bottom

    r912488de rb48cfa9  
    77verbose=""
    88limit="0"
     9use_sysv_ipc="auto"
    910
    1011## TODO: may want command line ability to turn on some psim tracing
    11 while getopts vl: OPT
     12while getopts vsl: OPT
    1213do
    1314    case "$OPT" in
    14         v)
    15             verbose="yes";;
    16         l)
    17             limit="$OPTARG";;
    18         *)
    19             fatal;;
     15        v) verbose="yes";;
     16        l) limit="$OPTARG";;
     17        s) use_sysv_ipc="yes";;
     18        *) fatal;;
    2019    esac
    2120done
  • c/src/lib/libbsp/powerpc/psim/tools/psim-gdb-bottom

    r912488de rb48cfa9  
    11
    22## TODO: may want command line ability to turn on some psim tracing
     3
     4# Recognize special argument to force System V IPC support on
     5if [ X${1} = "X-psim_sysv" ] ; then
     6  use_sysv_ipc="yes"
     7  shift
     8else
     9  use_sysv_ipc="auto"
     10fi
    311
    412## Generate the GDB Command Script
  • c/src/lib/libbsp/powerpc/psim/tools/psim-shared

    r912488de rb48cfa9  
    55gen_device_tree()
    66{
    7   case ${1} in
    8     *mp*)
    9       if [ X${RTEMS_SHM_SEMAPHORE_KEY} = X -o X${RTEMS_SHM_KEY} = X ] ; then
    10         fatal  RTEMS_SHM_SEMAPHORE_KEY and/or RTEMS_SHM_KEY not set
    11       fi
     7  enable_sys_ipc="yes"
    128
    13       use_sysv_devices=yes
    14       case ${1} in
    15         *node1*) value=1 ;;
    16         *)       value=-1 ;;
    17       esac
    18       ;;
    19     *)
    20       use_sysv_devices=no
    21       ;;
    22   esac
     9  if [ ${use_sys_ipc} = "yes" ] ; then
     10    enable_sysv_ipc="yes"
     11    value=-1               # for now assume we are slave in this mode
     12  else
     13    case ${1} in
     14      *mp*)
     15        enable_sysv_devices="yes"
     16        case ${1} in
     17          *node1*) value=1 ;;
     18          *)       value=-1 ;;
     19        esac
     20        ;;
     21      *)
     22        enable_sysv_devices="no"
     23        ;;
     24    esac
     25  fi
     26
     27  if [ ${enable_sysv_devices} = "yes" ] ; then
     28    if [ X${RTEMS_SHM_SEMAPHORE_KEY} = X -o X${RTEMS_SHM_KEY} = X ] ; then
     29      fatal  RTEMS_SHM_SEMAPHORE_KEY and/or RTEMS_SHM_KEY not set
     30    fi
     31  fi
    2332
    2433cat <<EOF
     
    4756EOF
    4857
    49   if [ ${use_sysv_devices} = yes ] ; then
     58  if [ ${enable_sysv_devices} = yes ] ; then
    5059    echo "##### System V IPC (Semaphore) 0x0c100010 for 12"
    5160    echo "/sem@0x0c100010/reg 0x0c100010 12"
     
    5867  fi
    5968
     69exit 0
    6070}
    6171
  • c/src/lib/libbsp/powerpc/psim/tools/psim-top.in

    r912488de rb48cfa9  
    2424"usage: $progname [ -opts ] test [ test ... ]
    2525        -v         -- verbose
     26        -s         -- force System V IPC support on (default=auto)
    2627        -l limit   -- specify time limit (default is 'no limit')
    2728"
Note: See TracChangeset for help on using the changeset viewer.