source: rtems-testing/sim-scripts/psim.in @ f630cdd

4.11
Last change on this file since f630cdd was 016b70c, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 21, 2009 at 8:32:38 PM

2009-08-21 Joel Sherrill <joel.sherrill@…>

  • ant5206.in, avrtest.in, bf537Stamp.in, csb337.in, csb350.in, csb360.in, ezkit533.in, gdb-sim-run.in, gumstix.in, h8sim.in, jmr3904.in, m32csim.in, m32rsim.in, psim.in, qemu-rtems.in, rtl22xx.in, simsh.in, sis.in, skyeye-support, smdk2410.in, tsim-support: echo rather than return time limit since the return code is only 0-255 and we need limits longer than 255 seconds.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1#
2#  PowerPC/psim Support
3#
4#  $Id$
5#
6
7runARGS()
8{
9  echo "-f ${bspTreeFile} ${1}"
10}
11
12checkBSPFaults()
13{
14  return 0
15}
16
17bspLimit()
18{
19  testname=$1
20  case ${tname} in
21    *stackchk*)limit=5 ;;
22    *fatal*)   limit=1 ;;
23    *psxtime*) limit=180 ;;
24    *)         limit=60 ;;
25  esac
26  echo ${limit}
27}
28
29bspGeneratesGDBCommands="yes"
30
31bspGenerateGDBCommands()
32{
33echo "tar sim -f ${bspTreeFile}"
34echo "load"
35}
36
37bspSupportsSystemVIPC="yes"
38
39bspGeneratesDeviceTree="yes"
40bspTreeFile=psim_tree.${LOGNAME}
41
42### Generate the PSIM device tree based upon the type of application being run
43bspGenerateDeviceTree()
44{
45  enable_sysv_devices="yes"
46
47  if [ X${use_sysv_ipc} = X"yes" ] ; then
48    enable_sysv_devices="yes"
49    value=-1               # for now assume we are slave in this mode
50  else
51    case ${1} in
52      *node*)
53        enable_sysv_devices="yes"
54        case ${1} in
55          *node1*) value=1 ;;
56          *)       value=-1 ;;
57        esac
58        ;;
59      *)
60        enable_sysv_devices="no"
61        ;;
62    esac
63  fi
64
65  if [ ${enable_sysv_devices} = "yes" ] ; then
66    if [ X${RTEMS_SHM_SEMAPHORE_KEY} = X -o X${RTEMS_SHM_KEY} = X ] ; then
67      fatal  RTEMS_SHM_SEMAPHORE_KEY and/or RTEMS_SHM_KEY not set
68    fi
69  fi
70
71cat <<EOF
72#
73#  Device Tree for PSIM
74#
75#  Automatically Generated -- DO NOT EDIT!!
76#
77/#address-cells 1
78/openprom/init/register/pvr 0xfffe0000
79/openprom/options/oea-memory-size 8388608
80##### EEPROM @ 0x0c000000 for 512K
81/eeprom@0x0c000000/reg 0x0c000000 0x80000
82/eeprom@0x0c000000/nr-sectors 8
83/eeprom@0x0c000000/sector-size 0x10000
84/eeprom@0x0c000000/byte-write-delay 1000
85/eeprom@0x0c000000/sector-start-delay 100
86/eeprom@0x0c000000/erase-delay 1000
87/eeprom@0x0c000000/manufacture-code 0x01
88/eeprom@0x0c000000/device-code 0xa4
89
90##### NVRAM/RTC NVRAM Portion is 0x0c080000 for 512K
91##### NVRAM/RTC RTC   Portion is 0x0c100000 for 12
92/nvram@0x0c080000/reg 0x0c080000 524300
93/nvram@0x0c080000/timezone -3600
94EOF
95
96  if [ ${enable_sysv_devices} = yes ] ; then
97    echo "##### System V IPC (Semaphore) 0x0c100010 for 12"
98    echo "/sem@0x0c100010/reg 0x0c100010 12"
99    echo "/sem@0x0c100010/key ${RTEMS_SHM_SEMAPHORE_KEY}"
100    echo "/sem@0x0c100010/value ${value}"
101    echo
102    echo "##### System V IPC (Shared Memory) 0x0c110000 for 128K"
103    echo "/shm@0x0c110000/reg 0x0c110000 0x20000"
104    echo "/shm@0x0c110000/key ${RTEMS_SHM_KEY}"
105  fi
106}
Note: See TracBrowser for help on using the repository browser.