"Neale" == Neale Ferguson <[EMAIL PROTECTED]> writes: Neale> In start_main in ./common/os/main.c there's a call to lwp_rtt Neale> just before it leaves. What is the purpose/operation of this Neale> routine? I've looked at the x86 and sparc implementations but Neale> it's still not clear what the intent of the function is. I am Neale> attempting to implement it for my s390x port.
I suspect you saw the comment in the sparcv9 implementation, but in case you didn't, look at usr/src/uts/sparc/v9/ml/syscall_trap.s at about lines 560-564: * lwp_rtt - start execution in newly created LWP. * Here with t_post_sys set by lwp_create, and lwp_eosys == JUSTRETURN, * so that post_syscall() will run and the registers will * simply be restored. * This must go out through sys_rtt instead of syscall_rtt. -- Dave Marquardt Sun Microsystems, Inc. Austin, TX +1 512 401-1077 (SUN internal: x64077) _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
