Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* kernel_thread from module (was [axp] 2.1.25)
       [not found] <Pine.LNX.3.95.970207193752.6503A-100000@nova.campus.luth.se>
@ 1997-02-07 19:12 ` Richard Henderson
  0 siblings, 0 replies; only message in thread
From: Richard Henderson @ 1997-02-07 19:12 UTC (permalink / raw)


>     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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-02-07 19:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.LNX.3.95.970207193752.6503A-100000@nova.campus.luth.se>
1997-02-07 19:12 ` kernel_thread from module (was [axp] 2.1.25) Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox