From 4aa252546f3559c9060ce731943372ad30d16eef Mon Sep 17 00:00:00 2001 From: pca006132 Date: Fri, 15 Jan 2021 16:47:31 +0800 Subject: [PATCH] experiments: updated experiment --- experiments/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/experiments/src/main.rs b/experiments/src/main.rs index f327a88..f35e0dd 100644 --- a/experiments/src/main.rs +++ b/experiments/src/main.rs @@ -1,7 +1,6 @@ #![no_std] #![no_main] #![feature(const_in_array_repeat_expressions)] -#![feature(naked_functions)] extern crate alloc; @@ -56,7 +55,6 @@ static CORE1_RESTART: AtomicBool = AtomicBool::new(false); #[link_section = ".text.boot"] #[no_mangle] -#[naked] pub unsafe extern "C" fn IRQ() { if MPIDR.read().cpu_id() == 1{ let mpcore = mpcore::RegisterBlock::mpcore(); @@ -218,7 +216,7 @@ pub fn main_core0() { while let Ok(stream) = TcpStream::accept(TCP_PORT, 0x10_0000, 0x10_0000).await { let stats_tx = stats_tx.clone(); task::spawn(async move { - let tx_data = (0..=255).take(4096).collect::>(); + let tx_data = (0..=255).cycle().take(4096).collect::>(); loop { // const CHUNK_SIZE: usize = 65536; // match stream.send((0..=255).cycle().take(CHUNK_SIZE)).await { -- 2.47.0