lkml.org 
[lkml]   [2001]   [Nov]   [6]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
FromKeith Owens <>
Subject2.4.13-ac8 current() changes
DateTue, 06 Nov 2001 16:38:24 +1100
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.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:12    [W:0.339 / U:1.900 seconds]
©2003-2008 Jasper Spaans