cvs commit: src/sys/kern kern_kse.c
Marcel Moolenaar
marcel at FreeBSD.org
Sat Apr 26 19:22:41 UTC 2008
marcel 2008-04-26 19:22:41 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_7)
sys/kern kern_kse.c
Log:
Put the arguments of kse_switchin in local variables, rather than
dereferencing uap throughout. On ia64 uap points into the trapframe
and the call to set_mcontext() in this function will change the
trapframe. Consequently, when we dereference uap afterwards we can
best qualify the behaviour as undefined. By putting the arguments
in local variables we also improve code-generation, because the
compiler is not forced to reload after every function call.
Caught by: Christian Kandeler <christian.kandeler at hob.de>
Revision Changes Path
1.235.2.2 +17 -9 src/sys/kern/kern_kse.c
More information about the cvs-src
mailing list