On Fri, 16 Oct 2026, Sad Clouds wrote:
Palle, the sun4v functions: sun4v_texttrap and sun4v_datatrap in locore.s did anyone port these verbatim from OpenBSD or Solaris, or are these NetBSD specific? The other sun4u versions of these functions appear to be much more complex and do more stuff. Maybe sun4v functions need additional review or testing?
When I started the sun4v porting years ago I imported a lot of the OpenBSD code, including the sun4v_texttrap and sun4v_datatrap code. I don't remember all the details, but I seem to remember that the code from OpenBSD was almost working out-of-the-box with minor cosmetic ajustments.