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

4.11
Last change on this file since d17c1ab was a00ab66, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 12, 2009 at 9:16:23 PM

2009-10-12 Joel Sherrill <joel.sherrill@…>

  • ant5206.in, avrtest.in, bf537Stamp.in, csb337.in, csb350.in, csb360.in, ezkit533.in, gdb-sim-run.in, gdbarmsim.in, gumstix.in, h8sim.in, jmr3904.in, lm32_evr.in, m32csim.in, m32rsim.in, pc386.in, psim.in, qemu-gumstix.in, qemu-leon2.in, qemuppc.in, rtl22xx.in, simsh.in, sis.in, skyeye-support, smdk2410.in, tsim-support, uC5282.in: Add running minimum to pick up path where there are no Classic API Initialization Tasks. Minimum has IDLE task as first application task.
  • Property mode set to 100644
File size: 2.6 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 ${testname} in
21    *stackchk*)limit=5 ;;
22    *fatal*)   limit=1 ;;
23    *minimum*) limit=1 ;;
24    *psxtime*) limit=180 ;;
25    *)         limit=60 ;;
26  esac
27  echo ${limit}
28}
29
30bspGeneratesGDBCommands="yes"
31
32bspGenerateGDBCommands()
33{
34echo "tar sim -f ${bspTreeFile}"
35echo "load"
36}
37
38bspSupportsSystemVIPC="yes"
39
40bspGeneratesDeviceTree="yes"
41bspTreeFile=psim_tree.${LOGNAME}
42
43### Generate the PSIM device tree based upon the type of application being run
44bspGenerateDeviceTree()
45{
46  enable_sysv_devices="yes"
47
48  if [ X${use_sysv_ipc} = X"yes" ] ; then
49    enable_sysv_devices="yes"
50    value=-1               # for now assume we are slave in this mode
51  else
52    case ${1} in
53      *node*)
54        enable_sysv_devices="yes"
55        case ${1} in
56          *node1*) value=1 ;;
57          *)       value=-1 ;;
58        esac
59        ;;
60      *)
61        enable_sysv_devices="no"
62        ;;
63    esac
64  fi
65
66  if [ ${enable_sysv_devices} = "yes" ] ; then
67    if [ X${RTEMS_SHM_SEMAPHORE_KEY} = X -o X${RTEMS_SHM_KEY} = X ] ; then
68      fatal  RTEMS_SHM_SEMAPHORE_KEY and/or RTEMS_SHM_KEY not set
69    fi
70  fi
71
72cat <<EOF
73#
74#  Device Tree for PSIM
75#
76#  Automatically Generated -- DO NOT EDIT!!
77#
78/#address-cells 1
79/openprom/init/register/pvr 0xfffe0000
80/openprom/options/oea-memory-size 16777216
81##### EEPROM @ 0x0c000000 for 512K
82/eeprom@0x0c000000/reg 0x0c000000 0x80000
83/eeprom@0x0c000000/nr-sectors 8
84/eeprom@0x0c000000/sector-size 0x10000
85/eeprom@0x0c000000/byte-write-delay 1000
86/eeprom@0x0c000000/sector-start-delay 100
87/eeprom@0x0c000000/erase-delay 1000
88/eeprom@0x0c000000/manufacture-code 0x01
89/eeprom@0x0c000000/device-code 0xa4
90
91##### NVRAM/RTC NVRAM Portion is 0x0c080000 for 512K
92##### NVRAM/RTC RTC   Portion is 0x0c100000 for 12
93/nvram@0x0c080000/reg 0x0c080000 524300
94/nvram@0x0c080000/timezone -3600
95
96##### OPENPIC @ 0x0c130000 - 0x0c170000 (512K)
97/opic@0x0c130000/reg              0x0c130000 0 0x0c130000 0x40000
98/opic@0x0c130000/interrupt-ranges 0 0 0 16
99/opic@0x0c130000/device_type      open-pic
100## interupt out -> CPU's interrupt pin
101/opic@0x0c130000 > intr0 int /cpus/cpu@0
102EOF
103
104  if [ ${enable_sysv_devices} = yes ] ; then
105    echo "##### System V IPC (Semaphore) 0x0c100010 for 12"
106    echo "/sem@0x0c100010/reg 0x0c100010 12"
107    echo "/sem@0x0c100010/key ${RTEMS_SHM_SEMAPHORE_KEY}"
108    echo "/sem@0x0c100010/value ${value}"
109    echo
110    echo "##### System V IPC (Shared Memory) 0x0c110000 for 128K"
111    echo "/shm@0x0c110000/reg 0x0c110000 0x20000"
112    echo "/shm@0x0c110000/key ${RTEMS_SHM_KEY}"
113  fi
114}
Note: See TracBrowser for help on using the repository browser.