Port-sparc64 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: SPARC V9: register windows vs. flat register set
On Mon, Nov 23, 2026 at 15:28:45 +0000, Sad Clouds wrote:
> I'm developing a small hobby OS for SPARC V9 and investigating a hybrid
> approach with two ABIs. One ABI with register windows would be used by
> the system kernel, another ABI with flat register set would be used by
> unprivileged software in order to avoid overheads associated with
> spill/fill traps caused by deeply nested functions.
>
> Has anyone seen anything similar implemented before?
The V8 manual says at the very end of the section D.8. Other Register
Window Usage Models (H.1.5 Other Register-Window-Usage Models in the
V9 manual, but V8 version is more verbose):
It would be possible to run user code with one register-usage
convention and supervisor code with another.
:)
The firmware for the microSPARC-II Sun-Rays used the flat ABI, but it
was not really an OS.
-uwe
Home |
Main Index |
Thread Index |
Old Index