sparc32: drop unused btfixup features
PATCH 1/1 sparc32: drop unused btfixup features
From d855682558cd176f326bf07e705331d72040083e Mon Sep 17 00:00:00 2001
From: Sam Ravnborg <[email protected]>
Date: Sun, 13 May 2012 13:17:16 +0200
Subject: [PATCH] sparc32: drop unused btfixup features
We no longer use any of the const replacement features. Also drop the support code in btfixupprep
Boot tested up+smp on my ss5.
--- arch/sparc/boot/btfixupprep.c | 44 ----------- arch/sparc/include/asm/btfixup.h | 151 +------------------------------------- arch/sparc/mm/btfixup.c | 93 ----------------------- 3 files changed, 1 insertions(+), 287 deletions(-)
arch/sparc/boot/btfixupprep.c +0 -44
@@ -148,10 +148,6 @@ main1:switch (buffer[nbase+3 ]) {case 'f' :/* CALL */ case 'b' :/* BLACKBOX */ -case 's' :/* SIMM13 */ -case 'a' :/* HALF */ -case 'h' :/* SETHI */ -case 'i' :/* INT */ break ;default :continue ;
@@ -241,46 +237,6 @@ main1:exit (1 ); }break ; -case 's' : -if (initval +0x1000 >=0x2000 ) { -fprintf (stderr,"Wrong initializer for SIMM13. Has to be from $fffff000 to $00000fff\n%s\n" , buffer); -exit (1 ); - } -if (strncmp (buffer + mode+9 ,"13 " ,10 )) { -fprintf (stderr,"BTFIXUP_SIMM13 results in relocation other than R_SPARC_13\n%s\n" , buffer); -exit (1 ); - } -break ; -case 'a' : -if (initval +0x1000 >=0x2000 && (initval &0x3ff )) { -fprintf (stderr,"Wrong initializer for HALF.\n%s\n" , buffer); -exit (1 ); - } -if (strncmp (buffer + mode+9 ,"13 " ,10 )) { -fprintf (stderr,"BTFIXUP_HALF results in relocation other than R_SPARC_13\n%s\n" , buffer); -exit (1 ); - } -break ; -case 'h' : -if (initval &0x3ff ) { -fprintf (stderr,"Wrong initializer for SETHI. Cannot have set low 10 bits\n%s\n" , buffer); -exit (1 ); - } -if (strncmp (buffer + mode+9 ,"HI22 " ,10 )) { -fprintf (stderr,"BTFIXUP_SETHI results in relocation other than R_SPARC_HI22\n%s\n" , buffer); -exit (1 ); - } -break ; -case 'i' : -if (initval) { -fprintf (stderr,"Cannot use pre-initialized fixups for INT\n%s\n" , buffer); -exit (1 ); - } -if (strncmp (buffer + mode+9 ,"HI22 " ,10 ) &&strncmp (buffer + mode+9 ,"LO10 " ,10 )) { -fprintf (stderr,"BTFIXUP_INT results in relocation other than R_SPARC_HI22 and R_SPARC_LO10\n%s\n" , buffer); -exit (1 ); - } -break ; }if (!f->setinitval) { f->initval = initval;
arch/sparc/include/asm/btfixup.h +1 -150
182 lines not on this page · raw message
arch/sparc/mm/btfixup.c +0 -93
115 lines not on this page · raw message
Signature · 1 line
1.6.0.6
Quoted 11 lines · Sam Ravnborg
Quoted 1 line
From
d855682558cd176f326bf07e705331d72040083eMon Sep 17 00:00:00 2001From: Sam Ravnborg <[email protected]>
Date: Sun, 13 May 2012 13:17:16 +0200
Subject: [PATCH] sparc32: drop unused btfixup featuresWe no longer use any of the const replacement features. Also drop the support code in btfixupprep
Boot tested up+smp on my ss5.
Signed-off-by Sam Ravnborg <[email protected]>
I have started to look a bit more into the btfixup stuff. And I am a bit confused of what I see.
The content on btfixup.S does not match my expectations.
I am right now not sure if I broke it somehow by this patch, so please do not apply!
Will take a closer look during next week and respin.
Sam
David Miller
maintainerFrom: Sam Ravnborg <[email protected]>
Date: Sun, 13 May 2012 17:14:28 +0200
Quoted 13 lines · Sam Ravnborg
Quoted 11 lines
Quoted 1 line
From
d855682558cd176f326bf07e705331d72040083eMon Sep 17 00:00:00 2001From: Sam Ravnborg <[email protected]>
Date: Sun, 13 May 2012 13:17:16 +0200
Subject: [PATCH] sparc32: drop unused btfixup featuresWe no longer use any of the const replacement features. Also drop the support code in btfixupprep
Boot tested up+smp on my ss5.
Signed-off-by Sam Ravnborg <[email protected]>
Quoted 8 lines
I have started to look a bit more into the btfixup stuff. And I am a bit confused of what I see.
The content onbtfixup.Sdoes not match my expectations.I am right now not sure if I broke it somehow by this patch, so please do not apply!
Will take a closer look during next week and respin.
I say hold off on this, we have completely eliminating btfixup in our sights now.
Let's blow away the remaining references and then kill btfixup off completely with one final stroke.