forked from M-Labs/nac3
core1: added cache flush and barriers.
This commit is contained in:
parent
49d93e20dd
commit
8e3574080c
@ -5,7 +5,12 @@ use alloc::borrow::ToOwned;
|
||||
use log::{debug, info, error};
|
||||
use cslice::CSlice;
|
||||
|
||||
use libcortex_a9::{enable_fpu, cache::{dcci_slice, iciallu}, sync_channel};
|
||||
use libcortex_a9::{
|
||||
enable_fpu,
|
||||
cache::{dcci_slice, iciallu, bpiall},
|
||||
asm::{dsb, isb},
|
||||
sync_channel
|
||||
};
|
||||
use dyld::{self, Library};
|
||||
use crate::eh_artiq;
|
||||
use super::{
|
||||
@ -92,7 +97,11 @@ impl KernelImage {
|
||||
// Flush data cache entries for the image in DDR, including
|
||||
// Memory/Instruction Synchronization Barriers
|
||||
dcci_slice(self.library.image.data);
|
||||
dsb();
|
||||
iciallu();
|
||||
bpiall();
|
||||
dsb();
|
||||
isb();
|
||||
|
||||
(mem::transmute::<u32, fn()>(self.__modinit__))();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user