Well, I tried this on my partly-implemented Plan 9 emulator. I sandwiched 
Ureg+fpreg between argv and the TOS structure. So note handlers get a fixed 
Ureg address that happens to have the fpregs after it. noted(2) is altered to 
use the fixed address for Ureg. Plan 9 binaries don't have to change, and 
libthread shouldn't blow any stacks, whatever Intel does (or indeed ARM in this 
case).
The fpnote2 binary I compiled on plan 9 runs on my emulator, as does a test 
program that does floating point in a note handler.
(I have to admit I'm still wondering what on Earth people are doing with 
floating point in note handlers.)
One of these days I'll try to get set up to tinker with the Plan 9 kernel, but 
right now I don't want to risk breaking the installation on my little Raspberry 
Pi...
------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Taf6b900592afc500-Me372a1c0bea9d981f7233b3d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to