| Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 1 | From 1c7a9150b63089baf3f63c64bf3dbb4d73c814f5 Mon Sep 17 00:00:00 2001 | 
|  | 2 | From: Nagaraju Mekala <nmekala@xilix.com> | 
|  | 3 | Date: Fri, 28 Sep 2018 12:07:43 +0530 | 
|  | 4 | Subject: [PATCH 08/11] fixing the bug in crt files, added addlik instead of | 
|  | 5 | lli insn | 
|  | 6 |  | 
|  | 7 | --- | 
|  | 8 | libgloss/microblaze/crt0.S | 6 +++--- | 
|  | 9 | libgloss/microblaze/crt1.S | 6 +++--- | 
|  | 10 | libgloss/microblaze/crt2.S | 6 +++--- | 
|  | 11 | libgloss/microblaze/crt3.S | 6 +++--- | 
|  | 12 | libgloss/microblaze/crt4.S | 6 +++--- | 
|  | 13 | 5 files changed, 15 insertions(+), 15 deletions(-) | 
|  | 14 |  | 
|  | 15 | diff --git a/libgloss/microblaze/crt0.S b/libgloss/microblaze/crt0.S | 
|  | 16 | index e4df73b..25e7c4a 100644 | 
|  | 17 | --- a/libgloss/microblaze/crt0.S | 
|  | 18 | +++ b/libgloss/microblaze/crt0.S | 
|  | 19 | @@ -106,9 +106,9 @@ _vector_hw_exception: | 
|  | 20 | .type _start1, @function | 
|  | 21 | _start1: | 
|  | 22 | #ifdef  __arch64__ | 
|  | 23 | -        lli     r13, r0, _SDA_BASE_ | 
|  | 24 | -        lli     r2, r0, _SDA2_BASE_ | 
|  | 25 | -        lli     r1,  r0, _stack-32 | 
|  | 26 | +        addlik     r13, r0, _SDA_BASE_ | 
|  | 27 | +        addlik     r2, r0, _SDA2_BASE_ | 
|  | 28 | +        addlik     r1,  r0, _stack-32 | 
|  | 29 | brealid	r15, _crtinit | 
|  | 30 | nop | 
|  | 31 | addlik   r5, r3, 0 | 
|  | 32 | diff --git a/libgloss/microblaze/crt1.S b/libgloss/microblaze/crt1.S | 
|  | 33 | index b24eeb5..38440c9 100644 | 
|  | 34 | --- a/libgloss/microblaze/crt1.S | 
|  | 35 | +++ b/libgloss/microblaze/crt1.S | 
|  | 36 | @@ -94,9 +94,9 @@ _vector_hw_exception: | 
|  | 37 | .type _start, @function | 
|  | 38 | _start: | 
|  | 39 | #ifdef	__arch64__ | 
|  | 40 | -	lli	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */ | 
|  | 41 | -        lli      r2, r0, _SDA2_BASE_ | 
|  | 42 | -        lli      r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */ | 
|  | 43 | +	addlik	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */ | 
|  | 44 | +        addlik      r2, r0, _SDA2_BASE_ | 
|  | 45 | +        addlik     r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */ | 
|  | 46 |  | 
|  | 47 | brealid   r15, _crtinit               /* Initialize BSS and run program */ | 
|  | 48 | nop | 
|  | 49 | diff --git a/libgloss/microblaze/crt2.S b/libgloss/microblaze/crt2.S | 
|  | 50 | index ae4c89e..352927d 100644 | 
|  | 51 | --- a/libgloss/microblaze/crt2.S | 
|  | 52 | +++ b/libgloss/microblaze/crt2.S | 
|  | 53 | @@ -92,9 +92,9 @@ _vector_hw_exception: | 
|  | 54 | .type _start, @function | 
|  | 55 | _start: | 
|  | 56 | #ifdef	__arch64__ | 
|  | 57 | -        lli	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */ | 
|  | 58 | -        lli	r2, r0, _SDA2_BASE_ | 
|  | 59 | -        lli	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */ | 
|  | 60 | +        addlik	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */ | 
|  | 61 | +        addlik	r2, r0, _SDA2_BASE_ | 
|  | 62 | +        addlik	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */ | 
|  | 63 | brealid	r15, _crtinit               /* Initialize BSS and run program */ | 
|  | 64 | nop | 
|  | 65 | addlik	r5, r3, 0 | 
|  | 66 | diff --git a/libgloss/microblaze/crt3.S b/libgloss/microblaze/crt3.S | 
|  | 67 | index a8bc783..bc32cda 100644 | 
|  | 68 | --- a/libgloss/microblaze/crt3.S | 
|  | 69 | +++ b/libgloss/microblaze/crt3.S | 
|  | 70 | @@ -62,9 +62,9 @@ | 
|  | 71 | .type _start, @function | 
|  | 72 | _start: | 
|  | 73 | #ifdef	__arch64__ | 
|  | 74 | -        lli	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */ | 
|  | 75 | -        lli	r2, r0, _SDA2_BASE_ | 
|  | 76 | -        lli	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */ | 
|  | 77 | +        addlik	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */ | 
|  | 78 | +        addlik	r2, r0, _SDA2_BASE_ | 
|  | 79 | +        addlik	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */ | 
|  | 80 |  | 
|  | 81 | brealid	r15, _crtinit               /* Initialize BSS and run program */ | 
|  | 82 | nop | 
|  | 83 | diff --git a/libgloss/microblaze/crt4.S b/libgloss/microblaze/crt4.S | 
|  | 84 | index 54ba473..a25c847 100644 | 
|  | 85 | --- a/libgloss/microblaze/crt4.S | 
|  | 86 | +++ b/libgloss/microblaze/crt4.S | 
|  | 87 | @@ -63,9 +63,9 @@ | 
|  | 88 | .type _start, @function | 
|  | 89 | _start: | 
|  | 90 | #ifdef	__arch64__ | 
|  | 91 | -        lli	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */ | 
|  | 92 | -        lli	r2, r0, _SDA2_BASE_ | 
|  | 93 | -        lli	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */ | 
|  | 94 | +        addlik	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */ | 
|  | 95 | +        addlik	r2, r0, _SDA2_BASE_ | 
|  | 96 | +        addlik	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */ | 
|  | 97 |  | 
|  | 98 | brealid	r15, _crtinit               /* Initialize BSS and run program */ | 
|  | 99 | nop | 
|  | 100 | -- | 
|  | 101 | 2.7.4 | 
|  | 102 |  |