Re: alpha fails Re: 2.4.20 ptrace patch

From: Chris Wright (chris@wirex.com)
Date: Tue Mar 18 2003 - 21:21:36 EST


* Tom Vier (tmv@comcast.net) wrote:
> anyone have a quick fix?
>
> kernel/kernel.o(.text+0x3488): In function `kernel_thread':
> : undefined reference to `arch_kernel_thread'
> kernel/kernel.o(.text+0x3490): In function `kernel_thread':
> : undefined reference to `arch_kernel_thread'
> make: *** [vmlinux] Error 1

Does this work (untested):

--- arch/alpha/kernel/entry.S.kmod Tue Mar 18 18:17:46 2003
+++ arch/alpha/kernel/entry.S Tue Mar 18 18:18:50 2003
@@ -234,8 +234,8 @@
  * arch_kernel_thread(fn, arg, clone_flags)
  */
 .align 3
-.globl kernel_thread
-.ent kernel_thread
+.globl arch_kernel_thread
+.ent arch_kernel_thread
 arch_kernel_thread:
         ldgp $29,0($27) /* we can be called from a module */
         .frame $30, 4*8, $26
@@ -265,7 +265,7 @@
         mov $0,$16
         mov $31,$26
         jsr $31,sys_exit
-.end kernel_thread
+.end arch_kernel_thread
 
 /*
  * __kernel_execve(path, argv, envp, regs)

-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net
-
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/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:25 EST