mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
reserve the top-most word of RAM as a "gutter" for filtered DMA
it's much easier to gutter a blocked AXI transaction, than to squash it. So we reserve a region of memory as a gutter for blocked transactions.
This commit is contained in:
parent
00da783c4d
commit
4884ee51d9
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ pub extern "C" fn _start(_kernel_args: usize, loader_sig: usize) {
|
||||||
|
|
||||||
// Place the stack pointer at the end of RAM
|
// Place the stack pointer at the end of RAM
|
||||||
"mv sp, {ram_top}",
|
"mv sp, {ram_top}",
|
||||||
|
// subtract four from sp to make room for a DMA "gutter"
|
||||||
|
"addi sp, sp, -4",
|
||||||
|
|
||||||
// Install a machine mode trap handler
|
// Install a machine mode trap handler
|
||||||
"la t0, abort",
|
"la t0, abort",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue