[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Creating sparc64 installation images



On 25/12/15 22:23, John Paul Adrian Glaubitz wrote:
> On 12/25/2015 11:09 PM, Bryce wrote:
>> I don't think we did any hacking in there, the only ref we have is
> Line 105 looks different in silo git, looks like you made some changes:
>
> http://git.kernel.org/cgit/linux/kernel/git/davem/silo.git/tree/common/divdi3.S#n105
>
> All my tests were performed on Dave's silo git repository. Can you diff
> your source against git here?
>
> PS: Going to be soon, it's almost midnight here :).
>

Ah 8) (long time since I was in silo)
yeah we just added the .register  directives and Jose spotted a problem where
the stack offset bias wasn't being catered for when in 64 bit builds



[root@ca-qasparc10 silo-1.4.14]# diff -u  divdi3.S common/divdi3.S

--- divdi3.S    2015-12-25 14:29:13.000000000 -0800
+++ common/divdi3.S     2015-12-25 13:37:46.166753226 -0800
@@ -17,9 +17,18 @@
 the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
+#if __WORDSIZE == 32
+# define STACK_BIAS 0
+#else
+#define STACK_BIAS 2047
+#endif
+
        .data
        .align 8
        .globl  __clz_tab
+       .register %g2,#scratch
+       .register %g3,#scratch
+
 __clz_tab:
        .byte   0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5
        .byte   6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6
@@ -36,7 +45,7 @@
        .align 4
        .globl __divdi3
 __divdi3:
-       save %sp,-104,%sp
+       save %sp,-STACK_BIAS-104,%sp
        cmp %i0,0
        bge .LL40
        mov 0,%l4


Reply to: