Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Haltiness
@ 1997-03-12 18:07 Tim Waugh
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Waugh @ 1997-03-12 18:07 UTC (permalink / raw)


--- linux-2.1.29/arch/alpha/kernel/entry.S    Thu Mar  6 15:16:20 1997
+++ linux/arch/alpha/kernel/entry.S       Wed Mar 12 14:56:19 1997
@@ -622,7 +622,6 @@
         * We're called with $0 containing the address of
         * 'intr_count' and $1 containing 'intr_count+1'
         */
-       stl     $1,0($0)        /* intr_count = 1 */
        subq    $30,16,$30
        stq     $19,0($30)      /* save syscall nr */
        stq     $20,8($30)      /* and error indication (a3) */

Here's a fix for the "haltiness" problem that has been in since 2.1.27 or
so.

Thanks to Phil Blundell for that.

Tim.
*/

--
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] 2+ messages in thread

* Re: Haltiness
       [not found] <Pine.LNX.3.95.970312180544.7200A-100000@cyberelk.elk.co.uk>
@ 1997-03-18 17:06 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 1997-03-18 17:06 UTC (permalink / raw)


> Here's a fix for the "haltiness" problem that has been in since 2.1.27 or so.
> 
> Thanks to Phil Blundell for that.

Quite right, but doesn't go far enough.  Since do_bottom_half now
mucks with intr_count itself, entry.S shouldn't be playing at all.

r~

--- linux-2.1.29/arch/alpha/kernel/entry.S.orig	Sun Mar 16 19:55:23 1997
+++ linux-2.1.29/arch/alpha/kernel/entry.S	Sun Mar 16 19:57:50 1997
@@ -526,14 +526,9 @@ entSys:
 ret_from_sys_call:
 	cmovne	$26,0,$19		/* $19 = 0 => non-restartable */
 	/* check bottom half interrupts */
-	lda	$0,intr_count
-	ldl	$1,0($0)
 	bne	$1,ret_from_handle_bh
-	lda	$2,bh_active
-	ldq	$3,0($2)
-	lda	$2,bh_mask
-	ldq	$4,0($2)
-	addq	$1,1,$1
+	ldq	$3,bh_active
+	ldq	$4,bh_mask
 	and	$3,$4,$2
 	bne	$2,handle_bottom_half
 ret_from_handle_bh:
@@ -618,20 +613,13 @@ strace_error:
 
 	.align 3
 handle_bottom_half:
-	/*
-	 * We're called with $0 containing the address of
-	 * 'intr_count' and $1 containing 'intr_count+1'
-	 */
-	stl	$1,0($0)	/* intr_count = 1 */
 	subq	$30,16,$30
 	stq	$19,0($30)	/* save syscall nr */
 	stq	$20,8($30)	/* and error indication (a3) */
 	jsr	$26,do_bottom_half
-	lda	$0,intr_count
 	ldq	$19,0($30)
 	ldq	$20,8($30)
 	addq	$30,16,$30
-	stl	$31,0($0)	/* intr_count = 0 */
 	br	$31,ret_from_handle_bh
 
 	.align 3

--
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] 2+ messages in thread

end of thread, other threads:[~1997-03-18 17:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.LNX.3.95.970312180544.7200A-100000@cyberelk.elk.co.uk>
1997-03-18 17:06 ` Haltiness Richard Henderson
1997-03-12 18:07 Haltiness Tim Waugh

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