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:
bunnie 2024-08-02 17:26:24 +08:00
parent 00da783c4d
commit 4884ee51d9

View file

@ -29,6 +29,8 @@ pub extern "C" fn _start(_kernel_args: usize, loader_sig: usize) {
// Place the stack pointer at the end of RAM
"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
"la t0, abort",