Load ELF in MLCoordinator.

Rather than using the Renode ELF loader, this CL moves that capability
into the ML Coordinator. The ELF is memory mapped in eflash instead. We
create MMIO buffers for the MLCoordinator to access. The ELF information
is gathered from the header. The ITCM and DTCM data is copied over to
the vector core.

Next steps are to integrate the load with the execute and to re-map the
return codes and fault registers into Rust code.

Change-Id: I3fc266feb262966318bb451888df146703a03579
GitOrigin-RevId: 8db55b58f86918b8c37d436f1d9f359afdd2a3ea
This commit is contained in:
Adam Jesionowski
2021-11-08 09:13:07 -08:00
committed by Sam Leffler
parent 3bda869f20
commit 3185f9f503
7 changed files with 146 additions and 11 deletions

View File

@@ -0,0 +1,4 @@
[package]
name = "kata-ml-interface"
version = "0.1.0"
edition = "2018"

View File

@@ -0,0 +1,5 @@
#![no_std]
pub trait MlCoordinatorInterface {
fn execute(&mut self);
}