Browse Source

fix(prototyper): use rustc_align attribute on function raw_fd.

Signed-off-by: jackfiled <xcrenchangjun@outlook.com>
jackfiled 2 weeks ago
parent
commit
de5a475870
1 changed files with 1 additions and 1 deletions
  1. 1 1
      prototyper/prototyper/src/firmware/mod.rs

+ 1 - 1
prototyper/prototyper/src/firmware/mod.rs

@@ -28,7 +28,7 @@ pub struct BootHart {
 
 #[unsafe(naked)]
 #[unsafe(link_section = ".fdt")]
-#[repr(align(16))]
+#[rustc_align(16)]
 #[cfg(feature = "fdt")]
 pub extern "C" fn raw_fdt() {
     naked_asm!(concat!(".incbin \"", env!("PROTOTYPER_FDT_PATH"), "\""),)