forked from M-Labs/artiq
1
0
Fork 0

satman: use 1K log buffer and 4K stack.

This reduces memory requirements in half.
This commit is contained in:
whitequark 2018-05-13 13:28:00 +00:00
parent ee4c475cf3
commit 32522be413
2 changed files with 3 additions and 3 deletions

View File

@ -274,7 +274,7 @@ pub extern fn main() -> i32 {
} }
ALLOC.add_range(&mut _fheap, &mut _eheap); ALLOC.add_range(&mut _fheap, &mut _eheap);
static mut LOG_BUFFER: [u8; 65536] = [0; 65536]; static mut LOG_BUFFER: [u8; 1024] = [0; 1024];
logger_artiq::BufferLogger::new(&mut LOG_BUFFER[..]).register(startup); logger_artiq::BufferLogger::new(&mut LOG_BUFFER[..]).register(startup);
0 0
} }

View File

@ -46,10 +46,10 @@ SECTIONS
_ebss = .; _ebss = .;
} > main_ram } > main_ram
.stack ALIGN(0x1000) : .stack :
{ {
_estack = .; _estack = .;
. += 0x4000; . += 0x1000;
_fstack = . - 4; _fstack = . - 4;
} > main_ram } > main_ram