Hi all,

the compilation commands given in "Writing Device Drivers" and "Device Driver 
Tutorial" on docs.sun.com are incorrect for gcc.

To compile 64bit drivers (for AMD64) using gcc, one must also pass the 
"-mno-red-zone" flag to gcc. 

Failure to do so results in funky and mysterious kernel panics. I believe the 
internal copy of the "Device Driver Tutorial" on docs.eng (on SWAN) has the 
correct invocation listed for gcc.

Could someone please correct this and save other people some heartache? 

Regards,
Jeremy.
This message posted from opensolaris.org

Reply via email to