From: Richard Henderson <richard@atheist.tamu.edu>
Subject: kernel_thread from module (was [axp] 2.1.25)
Date: Fri, 7 Feb 1997 13:12:09 -0600 (CST) [thread overview]
Message-ID: <199702071912.NAA24086@atheist.tamu.edu> (raw)
In-Reply-To: <Pine.LNX.3.95.970207193752.6503A-100000@nova.campus.luth.se>
> 38: 78 82 5d a4 ldq t1,-32136(gp) <===== t1 read here
[...]
> 58: 00 00 42 a4 ldq t1,0(t1) <====== pc is here
Thank Andreas for such a detailed report. That is exactly the
problem, and here is the solution. This is relative to 2.1.26.
r~
--- linux/arch/alpha/kernel/entry.S.orig Fri Feb 7 12:47:02 1997
+++ linux/arch/alpha/kernel/entry.S Fri Feb 7 12:51:14 1997
@@ -228,11 +228,12 @@ kernel_clone:
.ent __kernel_thread
__kernel_thread:
.frame $30, 4*8, $26
+ ldgp $29,0($27)
subq $30,4*8,$30
stq $10,16($30)
stq $9,8($30)
stq $26,0($30)
- .prologue 0
+ .prologue 1
bis $17,$17,$9 /* save fn */
bis $18,$18,$10 /* save arg */
bsr $26,kernel_clone
@@ -244,8 +245,6 @@ __kernel_thread:
ret $31,($26),1
/* this is in child: look out as we don't have any stack here.. */
1: bis $9,$9,$27 /* get fn */
- br $29,2f
-2: ldgp $29,0($29)
bis $10,$10,$16 /* get arg */
ldq $8,current_set
jsr $26,($27)
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
parent reply other threads:[~1997-02-07 19:12 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <Pine.LNX.3.95.970207193752.6503A-100000@nova.campus.luth.se>]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox