Skip to content

Commit

Permalink
Fix nightly CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
newAM committed Jan 11, 2024
1 parent ff2bb75 commit 056f1f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions cortex-m-rt/examples/alignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ static RODATA2: &[u8; 2] = b"34";
#[entry]
fn main() -> ! {
unsafe {
let _bss1 = ptr::read_volatile(&BSS1);
let _bss2 = ptr::read_volatile(&BSS2);
let _data1 = ptr::read_volatile(&DATA1);
let _data2 = ptr::read_volatile(&DATA2);
let _rodata1 = ptr::read_volatile(&RODATA1);
let _rodata2 = ptr::read_volatile(&RODATA2);
let _bss1 = ptr::read_volatile(ptr::addr_of!(BSS1));
let _bss2 = ptr::read_volatile(ptr::addr_of!(BSS2));
let _data1 = ptr::read_volatile(ptr::addr_of!(DATA1));
let _data2 = ptr::read_volatile(ptr::addr_of!(DATA2));
let _rodata1 = ptr::read_volatile(ptr::addr_of!(RODATA1));
let _rodata2 = ptr::read_volatile(ptr::addr_of!(RODATA2));
}

loop {}
Expand Down
2 changes: 1 addition & 1 deletion cortex-m-rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ pub fn heap_start() -> *mut u32 {
static mut __sheap: u32;
}

unsafe { &mut __sheap }
unsafe { core::ptr::addr_of_mut!(__sheap) }
}

// Entry point is Reset.
Expand Down
1 change: 1 addition & 0 deletions panic-itm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ use cortex_m::iprintln;
use cortex_m::peripheral::ITM;

#[panic_handler]
#[cfg(all(not(test), not(doctest)))]
fn panic(info: &PanicInfo) -> ! {
interrupt::disable();

Expand Down

0 comments on commit 056f1f3

Please sign in to comment.