source: rtems/c/src/lib/libbsp/powerpc/psim/tools/psim-bottom @ 75ed329

4.104.115
Last change on this file since 75ed329 was c0b8d7b, checked in by Joel Sherrill <joel.sherrill@…>, on 12/04/08 at 17:19:03

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.
  • Property mode set to 100755
File size: 502 bytes
Line 
1#
2# process the options
3#
4# defaults for getopt vars
5#
6
7verbose=""
8limit="0"
9use_sysv_ipc="auto"
10
11## TODO: may want command line ability to turn on some psim tracing
12while getopts vsl: OPT
13do
14    case "$OPT" in
15        v) verbose="yes";;
16        l) limit="$OPTARG";;
17        s) use_sysv_ipc="yes";;
18        *) fatal;;
19    esac
20done
21shiftcount=`expr $OPTIND - 1`
22shift $shiftcount
23
24args=$*
25
26if [ $# -eq 0 ] ; then
27  fatal
28fi
29
30gen_device_tree ${1} >${TREE_FILE}
31runone ${1} ${limit}
32rm -f ${TREE_FILE}
33exit $?
34
Note: See TracBrowser for help on using the repository browser.