kernel: flush now write-buffered dcache of image before execution

This commit is contained in:
2020-06-18 20:14:02 +02:00
parent 06ad8dfe27
commit d9bd42389f
3 changed files with 7 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ pub struct DynamicSection {
/// target memory image
pub struct Image {
layout: Layout,
data: &'static mut [u8],
pub data: &'static mut [u8],
}
impl Image {

View File

@@ -58,7 +58,7 @@ fn elf_hash(name: &[u8]) -> u32 {
}
pub struct Library {
image: Image,
pub image: Image,
dyn_section: DynamicSection,
}