On 08/12/06 11:46, Marcus Spangenberg wrote:
I doing some modifications to the dispatcher code in usr/src/uts/common/disp.c and need to add some inline assembly (sparc), though doing so causes the compilation to fail with an error message saying that using assembly inline makes optimizations impossible.
disp.c is common (ISA neutral code) so sparc assembly is not appropriate there other than for experimentation.
What is the proper way for this? Should I put the assembly in another place and then do function calls to it and where should I put it in that case?
Yes that would be the usual way, I think. You'd need to provide those functions for all ISAs implemented (sparc and i386). Cheers Gavin _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
