mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2025-12-27 07:45:28 +00:00
expand doom memory for pimoroni
This commit is contained in:
@@ -23,7 +23,7 @@ fn main() {
|
|||||||
let out = &PathBuf::from(env::var_os("OUT_DIR").unwrap());
|
let out = &PathBuf::from(env::var_os("OUT_DIR").unwrap());
|
||||||
File::create(out.join("memory.x"))
|
File::create(out.join("memory.x"))
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.write_all(include_bytes!("../memory.x"))
|
.write_all(include_bytes!("memory.x"))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
println!("cargo:rustc-link-search={}", out.display());
|
println!("cargo:rustc-link-search={}", out.display());
|
||||||
|
|
||||||
|
|||||||
31
user-apps/doom/memory.x
Normal file
31
user-apps/doom/memory.x
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
MEMORY
|
||||||
|
{
|
||||||
|
RAM : ORIGIN = 0x0, LENGTH = 400K
|
||||||
|
}
|
||||||
|
|
||||||
|
SECTIONS
|
||||||
|
{
|
||||||
|
.text : ALIGN(4)
|
||||||
|
{
|
||||||
|
*(.text .text.*);
|
||||||
|
*(.rodata .rodata.*);
|
||||||
|
} > RAM
|
||||||
|
|
||||||
|
.data : ALIGN(4)
|
||||||
|
{
|
||||||
|
*(.data .data.*);
|
||||||
|
} > RAM
|
||||||
|
|
||||||
|
.bss : ALIGN(4)
|
||||||
|
{
|
||||||
|
*(.bss .bss.*);
|
||||||
|
*(COMMON);
|
||||||
|
} > RAM
|
||||||
|
|
||||||
|
.syscall_table (NOLOAD) : ALIGN(4)
|
||||||
|
{
|
||||||
|
__user_reloc_start = .;
|
||||||
|
KEEP(*(.user_reloc*));
|
||||||
|
__user_reloc_end = .;
|
||||||
|
} > RAM
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user