index 60ce92bbd201c8f7b7b39e1fb25335438b59aad3..e24a9c8f31d208584c45c505e6601c24671d4dfc 100644 (file)
*/
var SysMin = this;
-var Core = null;
+var Core = undefined;
/*
* ======== module$static$init ========
function module$static$init(obj, params)
{
var segname = Program.sectMap[".tracebuf"];
+ if (segname == undefined) {
+ this.$logError(".tracebuf section not found in Program.sectMap", this);
+ }
+
var segment = Program.cpu.memoryMap[segname];
+ if (segment == undefined) {
+ this.$logError(".tracebuf section found, but not in " +
+ "Program.cpu.memoryMap", this);
+ }
if (params.bufSize > segment.len) {
this.$logError("bufSize 0x" + Number(params.bufSize).toString(16) +
+ " = 0x" + Number(this.LINEBUFSIZE).toString(16), this);
}
- if (Program.platformName.match(/ipu/)) {
+ if (Core != undefined) {
obj.lineBuffers.length = Core.numCores;
}
else {
*/
function module$use(obj, params)
{
- if (Program.platformName.match(/ipu/)) {
- Core = xdc.module("ti.sysbios.hal.Core");
- }
+ Core = xdc.useModule("ti.sysbios.hal.Core");
}
/*