All of lore.kernel.org
 help / color / mirror / Atom feed
* needs change macro HAS_SR_RB
@ 2008-02-16  1:12 Hideo Saito
  2008-02-26  5:28 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Hideo Saito @ 2008-02-16  1:12 UTC (permalink / raw)
  To: linux-sh

Hi Paul,

I wonder if you don't change a name intentionally, if not so ...

diff -pU8 -Naur linux-2.6.24.org/include/asm-sh/entry-macros.S linux-2.6.24/include/asm-sh/entry-macros.S
--- linux-2.6.24.org/include/asm-sh/entry-macros.S	2008-01-25 07:58:37.000000000 +0900
+++ linux-2.6.24/include/asm-sh/entry-macros.S	2008-02-04 11:45:35.000000000 +0900
@@ -7,25 +7,25 @@
 	.endm
 
 	.macro	sti
 	mov	#0xf0, r11
 	extu.b	r11, r11
 	not	r11, r11
 	stc	sr, r10
 	and	r11, r10
-#ifdef CONFIG_HAS_SR_RB
+#ifdef CONFIG_CPU_HAS_SR_RB
 	stc	k_g_imask, r11
 	or	r11, r10
 #endif
 	ldc	r10, sr
 	.endm
 
 	.macro	get_current_thread_info, ti, tmp
-#ifdef CONFIG_HAS_SR_RB
+#ifdef CONFIG_CPU_HAS_SR_RB
 	stc	r7_bank, \ti
 #else
 	mov	#((THREAD_SIZE - 1) >> 10) ^ 0xff, \tmp
 	shll8	\tmp
 	shll2	\tmp
 	mov	r15, \ti
 	and	\tmp, \ti
 #endif	

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: needs change macro HAS_SR_RB
  2008-02-16  1:12 needs change macro HAS_SR_RB Hideo Saito
@ 2008-02-26  5:28 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2008-02-26  5:28 UTC (permalink / raw)
  To: linux-sh

On Sat, Feb 16, 2008 at 10:12:23AM +0900, Hideo Saito wrote:
> I wonder if you don't change a name intentionally, if not so ...
> 
> diff -pU8 -Naur linux-2.6.24.org/include/asm-sh/entry-macros.S linux-2.6.24/include/asm-sh/entry-macros.S
> --- linux-2.6.24.org/include/asm-sh/entry-macros.S	2008-01-25 07:58:37.000000000 +0900
> +++ linux-2.6.24/include/asm-sh/entry-macros.S	2008-02-04 11:45:35.000000000 +0900
> @@ -7,25 +7,25 @@
>  	.endm
>  
>  	.macro	sti
>  	mov	#0xf0, r11
>  	extu.b	r11, r11
>  	not	r11, r11
>  	stc	sr, r10
>  	and	r11, r10
> -#ifdef CONFIG_HAS_SR_RB
> +#ifdef CONFIG_CPU_HAS_SR_RB
>  	stc	k_g_imask, r11
>  	or	r11, r10
>  #endif
>  	ldc	r10, sr
>  	.endm
>  
Oops. Yes, that's correct. The fact this has gone undetected so far
prooves just how often SR.IMASK is used.. Good catch, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-26  5:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-16  1:12 needs change macro HAS_SR_RB Hideo Saito
2008-02-26  5:28 ` Paul Mundt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.