From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2eb93cd2585e165e3ea9fb98ef6212bf.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199703181706.LAA13684@stommel.tamu.edu> Date: Tue, 18 Mar 1997 11:06:28 -0600 (CST) From: Richard Henderson Subject: Re: Haltiness In-Reply-To: > 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