Skip to content

Commit

Permalink
Merge branch 'main' into gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterparty authored May 16, 2024
2 parents 4137008 + 6b34e26 commit 444cbdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion compile_to_ppc/rel_loader/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![no_std]
#![allow(clippy::missing_safety_doc)]

use core::mem::MaybeUninit;

Expand Down Expand Up @@ -36,7 +37,7 @@ pub unsafe extern "C" fn rel_loader_hook() {
}

let rel_header = rel_data.as_mut_ptr() as *mut OSModuleHeader;
let bss_data = leak_aligned_slice((&*rel_header).bss_size as usize);
let bss_data = leak_aligned_slice((*rel_header).bss_size as usize);

OSLink(
&mut (*rel_header).mod_info,
Expand Down
2 changes: 1 addition & 1 deletion compile_to_ppc/rel_patches/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ unsafe extern "C" fn setup_global_state() {
{
let _ = fi.read_async(recv_buf, 0, 0);
}
REL_CONFIG = ssmarshal::deserialize(&recv_buf[..config_size].assume_init())
REL_CONFIG = ssmarshal::deserialize(recv_buf[..config_size].assume_init())
.unwrap()
.0;
}
Expand Down

0 comments on commit 444cbdb

Please sign in to comment.