linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.4.13-ac8 current() changes
@ 2001-11-06  5:38 Keith Owens
  0 siblings, 0 replies; only message in thread
From: Keith Owens @ 2001-11-06  5:38 UTC (permalink / raw)
  To: linux-kernel

2.4.13-ac8 changed get_current() to use cr2 instead of esp and
introduced hard_get_current() which uses esp.  The comment on
hard_get_current() in include/asm-i386/smp.h says "for within NMI,
do_page_fault, cpu_init".  But NMI, do_page_fault and cpu_init can
execute other code, any references to current() in that other code will
use get_current() instead of hard_get_current().

How is generic code called from NMI etc. meant to know which version of
current() to use?  Usage of current() is hidden inside a lot of other
macros, this change looks like a data mismatch just waiting to bite us.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-11-06  5:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-06  5:38 2.4.13-ac8 current() changes Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).