forked from M-Labs/artiq
ICAP: prevent sayma from using it (#1740)
This commit is contained in:
parent
dc546630e4
commit
5111132ef0
|
@ -114,6 +114,7 @@ pub unsafe fn write(mut addr: usize, mut data: &[u8]) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(soc_platform = "kasli", soc_platform = "metlino", soc_platform = "kc705"))]
|
||||||
pub unsafe fn reload () -> ! {
|
pub unsafe fn reload () -> ! {
|
||||||
csr::icap::iprog_write(1);
|
csr::icap::iprog_write(1);
|
||||||
loop {}
|
loop {}
|
||||||
|
|
|
@ -332,7 +332,8 @@ pub fn panic_impl(info: &core::panic::PanicInfo) -> ! {
|
||||||
println!("{:#08x}", ip - 2 * 4);
|
println!("{:#08x}", ip - 2 * 4);
|
||||||
});
|
});
|
||||||
|
|
||||||
if config::read_str("panic_reset", |r| r == Ok("1")) && cfg!(has_spiflash) {
|
if config::read_str("panic_reset", |r| r == Ok("1")) &&
|
||||||
|
cfg!(any(soc_platform = "kasli", soc_platform = "metlino", soc_platform = "kc705")) {
|
||||||
println!("restarting...");
|
println!("restarting...");
|
||||||
unsafe {
|
unsafe {
|
||||||
kernel::stop();
|
kernel::stop();
|
||||||
|
|
Loading…
Reference in New Issue