mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 09:06:33 +11:00
Extern definition can be made smaller
This commit is contained in:
parent
7062610aba
commit
2bacbf35dc
1 changed files with 4 additions and 4 deletions
|
@ -2,11 +2,11 @@ use core::alloc::{GlobalAlloc, Layout};
|
||||||
|
|
||||||
use super::interrupt::Mutex;
|
use super::interrupt::Mutex;
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
static __ewram_data_end: usize;
|
|
||||||
}
|
|
||||||
|
|
||||||
fn get_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
|
// TODO: This seems completely wrong, but without the &, rust generates
|
||||||
// a double dereference :/. Maybe a bug in nightly?
|
// a double dereference :/. Maybe a bug in nightly?
|
||||||
(unsafe { &__ewram_data_end }) as *const _ as usize
|
(unsafe { &__ewram_data_end }) as *const _ as usize
|
||||||
|
|
Loading…
Add table
Reference in a new issue