diff options
author | Suman Anna <s-anna@ti.com> | 2018-05-01 17:33:27 -0500 |
---|---|---|
committer | Angela Stegmaier <angelabaker@ti.com> | 2018-05-07 11:31:13 -0500 |
commit | 24c36385d096613af123d1e1696fb2fee652ef36 (patch) | |
tree | cf28d4fe7d76b54848e087471f92412155902e5a | |
parent | 0400a9a32b8a9cbe75740803570417ac726f081b (diff) | |
download | ipc-3.47-next.tar.gz |
Resource: Rename the IpcMemory name in Resource.xs3.47.02.00ipc-3.47-next3.47
The Resource module is derived from the IpcMemory module within
the sysbios-rpmsg codebase originally, but the Resource.xs file
is still using the IpcMemory name and so the config processing of
this module will print erroneous names on any misconfiguration.
Rename the variable IpcMemory to Resource like is normally done
with .xs files.
Signed-off-by: Suman Anna <s-anna@ti.com>
-rw-r--r-- | packages/ti/ipc/remoteproc/Resource.xs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/packages/ti/ipc/remoteproc/Resource.xs b/packages/ti/ipc/remoteproc/Resource.xs index e94baf5..59a4e69 100644 --- a/packages/ti/ipc/remoteproc/Resource.xs +++ b/packages/ti/ipc/remoteproc/Resource.xs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2012, Texas Instruments Incorporated + * Copyright (c) 2011-2018, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -31,30 +31,30 @@ */ /* - * ======== IpcMemory.xs ======== + * ======== Resource.xs ======== * */ -var IpcMemory; +var Resource; /* * ======== module$meta$init ======== */ function module$use() { - IpcMemory = this; + Resource = this; var memmap = Program.cpu.memoryMap; var segment = null; - var addr = IpcMemory.loadAddr; + var addr = Resource.loadAddr; - if (IpcMemory.loadSegment != undefined) { + if (Resource.loadSegment != undefined) { for (var i=0; i < memmap.length; i++) { - if (memmap[i].name == IpcMemory.loadSegment) { + if (memmap[i].name == Resource.loadSegment) { segment = memmap[i]; } } if (segment == null) { - this.$logError("IpcMemory.loadSegment not found", this); + this.$logError("Resource.loadSegment not found", this); } addr = segment.base; } @@ -69,18 +69,18 @@ function module$static$init(obj, params) { var memmap = Program.cpu.memoryMap; var segment = null; - var addr = IpcMemory.loadAddr; + var addr = Resource.loadAddr; - if (IpcMemory.loadSegment != undefined) { + if (Resource.loadSegment != undefined) { for (var i=0; i < memmap.length; i++) { - if (memmap[i].name == IpcMemory.loadSegment) { + if (memmap[i].name == Resource.loadSegment) { segment = memmap[i]; } } if (null == segment) { - this.$logError("IpcMemory.loadSegment not found", this); + this.$logError("Resource.loadSegment not found", this); } -// print("IpcMemory.loadSegment", IpcMemory.loadSegment); +// print("Resource.loadSegment", Resource.loadSegment); addr = segment.base; } |