]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Put the arguments of kse_switchin in local variables, rather than
authormarcel <marcel@FreeBSD.org>
Sat, 26 Apr 2008 19:22:41 +0000 (19:22 +0000)
committermarcel <marcel@FreeBSD.org>
Sat, 26 Apr 2008 19:22:41 +0000 (19:22 +0000)
commitde1a95f9ffd9d6b8fcfface17dd6650ccf23e755
treec293efa84c10a3c985f6d83b599c3066972930ce
parentae2defc39b28f5dc6ee1625796e82150490df82f
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@hob.de>
sys/kern/kern_kse.c