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

4.11
Last change on this file since 9cb0643 was 9cb0643, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 20, 2009 at 2:22:24 AM

2009-01-19 Joel Sherrill <joel.sherrill@…>

  • .cvsignore, Makefile, gdb-sim-run.in, gdb-sim.in, h8sim.in, jmr3904.in, m32csim.in, m32rsim.in, mkrun, psim.in, simsh.in, sis.in: Add ARM/edb7312 support. This is the first Skyeye BSP and adding this required tinkering with all BSP scripts. All appear to still work OK.
  • edb7312.in, skyeye-support: New files.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1#
2#  PowerPC/psim Support
3#
4#  $Id$
5#
6
7runBSP=${RUN}
8runARGS()
9{
10  echo "-f ${bspTreeFile} ${1}"
11}
12
13checkBSPFaults()
14{
15  return 0
16}
17
18bspLimit()
19{
20  testname=$1
21  case ${tname} in
22    *stackchk*)limit=5 ;;
23    *fatal*)   limit=1 ;;
24    *psxtime*) limit=180 ;;
25    *)         limit=60 ;;
26  esac
27  return ${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_ipc="yes"
47
48  if [ ${use_sysv_ipc} = "yes" ] ; then
49    enable_sysv_ipc="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 8388608
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
95EOF
96
97  if [ ${enable_sysv_devices} = yes ] ; then
98    echo "##### System V IPC (Semaphore) 0x0c100010 for 12"
99    echo "/sem@0x0c100010/reg 0x0c100010 12"
100    echo "/sem@0x0c100010/key ${RTEMS_SHM_SEMAPHORE_KEY}"
101    echo "/sem@0x0c100010/value ${value}"
102    echo
103    echo "##### System V IPC (Shared Memory) 0x0c110000 for 128K"
104    echo "/shm@0x0c110000/reg 0x0c110000 0x20000"
105    echo "/shm@0x0c110000/key ${RTEMS_SHM_KEY}"
106  fi
107}
Note: See TracBrowser for help on using the repository browser.