From: Itsuro O. <od...@us...> - 2006-01-10 00:40:47
|
Update of /cvsroot/mkdump/mkexec/2.0/2.6/include/linux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31760/include/linux Modified Files: cpus.h Log Message: for debian Index: cpus.h =================================================================== RCS file: /cvsroot/mkdump/mkexec/2.0/2.6/include/linux/cpus.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** cpus.h 9 Dec 2005 13:18:10 -0000 1.4 --- cpus.h 10 Jan 2006 00:40:35 -0000 1.5 *************** *** 67,70 **** --- 67,74 ---- } + #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 9)) && defined(CONFIG_X86) && !defined(CONFIG_X86_64) + /* i386, before 2.6.9 */ + #define get_processor_id() smp_processor_id() + #else /* Replacement for smp_processor_id() as on i386 * its 'current_thread_info()->cpu' gets corrupted during a stack overflow. *************** *** 80,83 **** --- 84,88 ---- return convert_apicid_to_cpu(apic_id); } + #endif static inline void stop_this_cpu_safe (void *dummy) |