On Sat, Jan 25, 2025 at 10:06:38PM +0000, Maciej W. Rozycki wrote: > On Sat, 25 Jan 2025, Ivan Kokshaysky wrote: > > > > > Here just bumping up the frame size and adjusting offsets in assembly > > > > code accordingly so as to account for the empty longword at the bottom > > > > of the frame should do, just as I did across my change. > > > > > > ... or, depending on how you look at it, top of the frame and FAOD in any > > > case the longword closest to the stack pointer will be the empty one. > > > > Right. So if we agree on my variant, this addition patch is needed. > > Erm, that's a good starting point but offsets for the individual register > slots need to be updated as well for `do_page_fault' and `do_entUnaUser' > to get at the correct ones for those that are at negative indices from the > `regs' pointer supplied, i.e. $9 at 8($sp), $10 at 16($sp), etc., and with > 0($sp) now unoccupied. Sorry to get it through unclear after all. Ah, thanks a lot! Should've noticed that myself, but I've booted with the last patch and it didn't crash on me, so I thought the deed is done... I'll fix that tomorrow. Ivan.