You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing (and trying to actually finish) #320, follow-up work has sprung to mind. Just jotting down so I don't forget. This list might grow with time.
@davidchisnall's "assume MSHWM now" comment; it's been a long time since we've driven without it (though @rmn30 notes that it could be useful to keep configurable for benchmarking)
After that, it would be nice to permute the fields of TrustedStackGeneric to make its tuple-like nature (spill frame, stack, miscellaneous state) more obvious; and some more commentary here couldn't hurt.
.Lswitch_trusted_stack_exhausted looks an awful lot like a subset of switcher_skip_compartment_call. Can we readily shuffle the latter so that the former can be made to look like .Lswitch_stack_too_small?
.Lhandle_error_try_stackful and .Lhandle_error_try_stackless both want the value 0xffff in s1; can we shuffle things around so that that's live-in to both rather than being li-d separately in each?
The CSetBoundsExact in .Lswitch_stack_chop could fail if stacks are large and the current cursor is not sufficiently aligned. We could, in decreasing order of preference,...
decide that's OK, and just unwind back into the caller when we try to zero the stack, as now (because we're after the update to the TrustedStack::frameoffset at the end of .Ltrusted_stack_push) but with more documentation
manually test (I'd rather not stick more instructions on the fast path, but it is an option)
The text was updated successfully, but these errors were encountered:
While writing (and trying to actually finish) #320, follow-up work has sprung to mind. Just jotting down so I don't forget. This list might grow with time.
cincoffset
andcmove
. We should instead convert theSPILL_SLOT_c*
offsets to be negative relative to an unmovedcsp
and then do thecincoffset
instead of thecmove
. This is easy, barely worth mentioning, but I'd rather do it after rather than before WIP: various tweaks to, and a pile of documentation for, the switcher and exception handler #320, because rebasing is getting old.TrustedStackGeneric
to make its tuple-like nature (spill frame, stack, miscellaneous state) more obvious; and some more commentary here couldn't hurt..Lswitch_trusted_stack_exhausted
looks an awful lot like a subset ofswitcher_skip_compartment_call
. Can we readily shuffle the latter so that the former can be made to look like.Lswitch_stack_too_small
?.Lhandle_error_try_stackful
and.Lhandle_error_try_stackless
both want the value0xffff
ins1
; can we shuffle things around so that that's live-in to both rather than beingli
-d separately in each?CSetBoundsExact
in.Lswitch_stack_chop
could fail if stacks are large and the current cursor is not sufficiently aligned. We could, in decreasing order of preference,...CSetBoundsRoundDown
(CSetBoundsRoundDown cheriot-sail#74) once it existsTrustedStack::frameoffset
at the end of.Ltrusted_stack_push
) but with more documentationThe text was updated successfully, but these errors were encountered: