]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/rm-lld.git/blob - test/k2k/c66/bios/rm_shared_test.cfg
NOTICE OF RELOCATION
[keystone-rtos/rm-lld.git] / test / k2k / c66 / bios / rm_shared_test.cfg
1 /* 
2  * Copyright (c) 2012-2013, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * *  Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  *
12  * *  Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  *
16  * *  Neither the name of Texas Instruments Incorporated nor the names of
17  *    its contributors may be used to endorse or promote products derived
18  *    from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  * */
33 var MultiProc = xdc.useModule('ti.sdo.utils.MultiProc');
35 /*
36  *  Get the list of names that the build device supports.
37  *  I.e. ["CORE0", "CORE1", "CORE2" ... ]
38  */
39 var nameList = ["CORE0", "CORE1"];
41 /* 
42  *  Since this is a single-image example, we don't (at build-time) which 
43  *  processor we're building for.  We therefore supply 'null' 
44  *  as the local procName and allow IPC to set the local procId at runtime.
45  */
46 MultiProc.setConfig(null, nameList);
47                            
48 /* 
49  *  The SysStd System provider is a good one to use for debugging 
50  *  but does not have the best performance. Use xdc.runtime.SysMin
51  *  for better performance.
52  */
53 var System   = xdc.useModule('xdc.runtime.System');
54 var SysStd   = xdc.useModule('xdc.runtime.SysStd');
55 System.SupportProxy = SysStd;
57 /* Modules explicitly used in the application */
58 var MessageQ    = xdc.useModule('ti.sdo.ipc.MessageQ');
59 var Ipc         = xdc.useModule('ti.sdo.ipc.Ipc');
60 var HeapBufMP   = xdc.useModule('ti.sdo.ipc.heaps.HeapBufMP');
61 var MultiProc   = xdc.useModule('ti.sdo.utils.MultiProc');
63 /* BIOS/XDC modules */
64 var BIOS        = xdc.useModule('ti.sysbios.BIOS');
65 BIOS.heapSize   = 0x10000;
66 var Task        = xdc.useModule('ti.sysbios.knl.Task');
68 Program.sectMap[".rmSharedHandleTest"] = new Program.SectionSpec();
69 Program.sectMap[".rmSharedHandleTest"] = "MSMCSRAM";
71 /* Read once when RM_SHARED_SERVER is initialized */
72 Program.sectMap[".sharedGRL"] = new Program.SectionSpec();
73 Program.sectMap[".sharedGRL"] = "L2SRAM";
75 Program.sectMap[".sharedGlobalPolicy"] = new Program.SectionSpec();
76 Program.sectMap[".sharedGlobalPolicy"] = "L2SRAM";
78 /* Synchronize all processors (this will be done in Ipc_start) */
79 Ipc.procSync = Ipc.ProcSync_ALL;
81 /* 
82  *  Need to define the shared region. The IPC modules use this
83  *  to make portable pointers. All processors need to add this
84  *  call with their base address of the shared memory region.
85  *  If the processor cannot access the memory, do not add it.
86  */ 
87 var SharedRegion = xdc.useModule('ti.sdo.ipc.SharedRegion');
88 SharedRegion.translate = false;
89 SharedRegion.setEntryMeta(0,
90     { base: 0x0C000000, 
91       len:  0x00100000,
92       ownerProcId: 0,
93       isValid: true,
94       name: "sharemem",
95     });
97 /* PDK packages */
98 var devType = "k2k"
99 var Csl = xdc.useModule('ti.csl.Settings');
100 Csl.deviceType = devType;
101 var Rm = xdc.loadPackage('ti.drv.rm'); 
102