xilinx eth in own folder. found another bug/challenge with dma

This commit is contained in:
2024-08-26 12:03:31 +02:00
parent 8497fe754c
commit ee06c79bf4
9 changed files with 163 additions and 233 deletions

View File

@ -24,8 +24,8 @@ fn panic(panic: &PanicInfo<'_>) -> ! {
_ = writeln!(crate::fsrc::sif::Stderr {},"");
_ = write!(crate::fsrc::sif::Stderr {},"in task \"");
unsafe {
//osal::get_task_name is implemented safely in C, so we trust it
let task_name = core::ffi::CStr::from_ptr(osal::get_task_name());
//TODO this breaks all the time...
let task_name = core::ffi::CStr::from_ptr(osal::get_task_name());
let task_name_utf8 = core::str::from_utf8(task_name.to_bytes());
match task_name_utf8 {
Ok(string) => {