mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 17:41:33 +11:00
Extern definition can be made smaller
This commit is contained in:
parent
7062610aba
commit
2bacbf35dc
|
@ -2,11 +2,11 @@ use core::alloc::{GlobalAlloc, Layout};
|
|||
|
||||
use super::interrupt::Mutex;
|
||||
|
||||
extern "C" {
|
||||
static __ewram_data_end: usize;
|
||||
}
|
||||
|
||||
fn get_data_end() -> usize {
|
||||
extern "C" {
|
||||
static __ewram_data_end: usize;
|
||||
}
|
||||
|
||||
// TODO: This seems completely wrong, but without the &, rust generates
|
||||
// a double dereference :/. Maybe a bug in nightly?
|
||||
(unsafe { &__ewram_data_end }) as *const _ as usize
|
||||
|
|
Loading…
Reference in a new issue