forked from M-Labs/artiq
1
0
Fork 0

kasli: enable interrupts

This commit is contained in:
morgan 2024-05-24 10:53:14 +08:00 committed by Sébastien Bourdeauducq
parent 13830a27af
commit 14a618b48d
2 changed files with 9 additions and 0 deletions

View File

@ -36,6 +36,8 @@ use smoltcp::wire::HardwareAddress;
use board_misoc::{csr, ident, clock, spiflash, config, net_settings, pmp, boot};
#[cfg(has_ethmac)]
use board_misoc::ethmac;
#[cfg(soc_platform = "kasli")]
use board_misoc::irq;
use board_misoc::net_settings::{Ipv4AddrConfig};
#[cfg(has_drtio)]
use board_artiq::drtioaux;
@ -265,6 +267,9 @@ pub extern fn main() -> i32 {
pmp::init_stack_guard(&_sstack_guard as *const u8 as usize);
#[cfg(soc_platform = "kasli")]
irq::enable_interrupts();
logger_artiq::BufferLogger::new(&mut LOG_BUFFER[..]).register(||
boot::start_user(startup as usize)
);

View File

@ -17,6 +17,8 @@ use core::convert::TryFrom;
use board_misoc::{csr, ident, clock, uart_logger, i2c, pmp};
#[cfg(has_si5324)]
use board_artiq::si5324;
#[cfg(soc_platform = "kasli")]
use board_misoc::irq;
use board_artiq::{spi, drtioaux, drtio_routing};
#[cfg(soc_platform = "efc")]
use board_artiq::ad9117;
@ -630,6 +632,8 @@ pub extern fn main() -> i32 {
ALLOC.add_range(&mut _fheap, &mut _eheap);
pmp::init_stack_guard(&_sstack_guard as *const u8 as usize);
}
#[cfg(soc_platform = "kasli")]
irq::enable_interrupts();
clock::init();
uart_logger::ConsoleLogger::register();