Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Apr 2008 19:22:41 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_kse.c
Message-ID:  <200804261922.m3QJMfcU057573@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@hob.de>
  
  Revision   Changes    Path
  1.235.2.2  +17 -9     src/sys/kern/kern_kse.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804261922.m3QJMfcU057573>