diff -u -X ../dontdiff linux-2.5.59/fs/aio.c linux-2.5.59-kexecdump/fs/aio.c --- linux-2.5.59/fs/aio.c Fri Jan 17 07:52:06 2003 +++ linux-2.5.59-kexecdump/fs/aio.c Tue Feb 11 09:14:25 2003 @@ -539,7 +539,7 @@ return ioctx; } -static void use_mm(struct mm_struct *mm) +void use_mm(struct mm_struct *mm) { struct mm_struct *active_mm = current->active_mm; atomic_inc(&mm->mm_count); --- linux-2.5.59/arch/i386/kernel/machine_kexec.c Thu Feb 6 16:31:14 2003 +++ linux-2.5.59-kexecdump/arch/i386/kernel/machine_kexec.c Tue Feb 11 09:14:05 2003 @@ -80,7 +80,8 @@ relocate_new_kernel_t rnk; /* switch to an mm where the reboot_code_buffer is identity mapped */ - switch_mm(current->active_mm, &init_mm, current, smp_processor_id()); + extern void use_mm(struct mm_struct *mm); + use_mm(&init_mm); stop_apics();