Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <richard@stommel.tamu.edu>
Subject: Re: Haltiness
Date: Tue, 18 Mar 1997 11:06:28 -0600 (CST)	[thread overview]
Message-ID: <2eb93cd2585e165e3ea9fb98ef6212bf.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.LNX.3.95.970312180544.7200A-100000@cyberelk.elk.co.uk>

> 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

       reply	other threads:[~1997-03-18 17:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.95.970312180544.7200A-100000@cyberelk.elk.co.uk>
1997-03-18 17:06 ` Richard Henderson [this message]
1997-03-12 18:07 Haltiness Tim Waugh
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