diff options
Diffstat (limited to 'applications/message_handler_openamp/main.cpp')
-rw-r--r-- | applications/message_handler_openamp/main.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/applications/message_handler_openamp/main.cpp b/applications/message_handler_openamp/main.cpp index 7b755b9..62bdc97 100644 --- a/applications/message_handler_openamp/main.cpp +++ b/applications/message_handler_openamp/main.cpp @@ -84,12 +84,24 @@ __attribute__((section(".resource_table"))) ResourceTable resourceTable = { }, // Offset { + offsetof(ResourceTable, mapping), #if defined(REMOTEPROC_TRACE_BUFFER) offsetof(ResourceTable, trace), #endif offsetof(ResourceTable, vdev), offsetof(ResourceTable, carveout), - }, + }, + // Mappings + { + RSC_MAPPING, + ResourceTable::NUM_RANGES, + {} + }, + // Ranges + { + { 0, 0, 0 }, + { 0, 0, 0 }, + }, // Trace buffer #if defined(REMOTEPROC_TRACE_BUFFER) { @@ -163,8 +175,7 @@ void mailboxIrqHandler() { int main() { printf("Ethos-U Message Handler OpenAMP\n"); - auto mem = std::make_shared<MetalIO>(); - auto rproc = std::make_shared<RProc>(mailbox, resourceTable.table, sizeof(resourceTable), *mem); + auto rproc = std::make_shared<RProc>(mailbox, resourceTable.table, sizeof(resourceTable)); auto messageHandler = std::make_shared<MessageHandler>(*rproc, "ethos-u-0.0"); printf("TFLM arena. pa=%" PRIx32 ", da=%" PRIx32 ", len=%" PRIx32 "\n", |