Jonathan Neuschäfer has posted comments on this change. ( https://review.coreboot.org/27397 )
Change subject: riscv: add trampoline in MBR block to support boot mode 1 ......................................................................
Patch Set 4:
Ok, I remember. My idea for the MBR code was to act like ZSBL to keep the rest of the code simpler because the memory layout upon bootblock entry stays exactly the same:
1. Initialize L2LIM, if it isn't usable right after reset 2. Copy the bootblock from memory-mapped SPI flash to the beginning of L2LIM 3. Jump into L2LIM
It may also be possible to execute the bootblock in place, but then you need to change bootblock.S or a linker script or something else to place the stack in L2LIM, not just after the bootblock as it currently is.