summaryrefslogtreecommitdiff
path: root/meta-xilinx/meta-microblaze/recipes-core/newlib/files/0008-fixing-the-bug-in-crt-files-added-addlik-instead-of-.patch
blob: 437d29f327d40ab037398bb3a678541261c90203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
From 000cfdc6f16009e62c236267ce7123a9ef2380e9 Mon Sep 17 00:00:00 2001
From: Nagaraju Mekala <nmekala@xilix.com>
Date: Fri, 28 Sep 2018 12:07:43 +0530
Subject: [PATCH 08/11] fixing the bug in crt files, added addlik instead of
 lli insn

---
 libgloss/microblaze/crt0.S | 6 +++---
 libgloss/microblaze/crt1.S | 6 +++---
 libgloss/microblaze/crt2.S | 6 +++---
 libgloss/microblaze/crt3.S | 6 +++---
 libgloss/microblaze/crt4.S | 6 +++---
 5 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/libgloss/microblaze/crt0.S b/libgloss/microblaze/crt0.S
index e4df73b66..25e7c4af3 100644
--- a/libgloss/microblaze/crt0.S
+++ b/libgloss/microblaze/crt0.S
@@ -106,9 +106,9 @@ _vector_hw_exception:
         .type _start1, @function   
 _start1:
 #ifdef  __arch64__
-        lli     r13, r0, _SDA_BASE_
-        lli     r2, r0, _SDA2_BASE_
-        lli     r1,  r0, _stack-32
+        addlik     r13, r0, _SDA_BASE_
+        addlik     r2, r0, _SDA2_BASE_
+        addlik     r1,  r0, _stack-32
         brealid	r15, _crtinit
         nop
         addlik   r5, r3, 0
diff --git a/libgloss/microblaze/crt1.S b/libgloss/microblaze/crt1.S
index b24eeb531..38440c957 100644
--- a/libgloss/microblaze/crt1.S
+++ b/libgloss/microblaze/crt1.S
@@ -94,9 +94,9 @@ _vector_hw_exception:
         .type _start, @function    
 _start:
 #ifdef	__arch64__
-	lli	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */
-        lli      r2, r0, _SDA2_BASE_
-        lli      r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */
+	addlik	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */
+        addlik      r2, r0, _SDA2_BASE_
+        addlik     r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */
 
         brealid   r15, _crtinit               /* Initialize BSS and run program */
 	nop
diff --git a/libgloss/microblaze/crt2.S b/libgloss/microblaze/crt2.S
index ae4c89ee0..352927dab 100644
--- a/libgloss/microblaze/crt2.S
+++ b/libgloss/microblaze/crt2.S
@@ -92,9 +92,9 @@ _vector_hw_exception:
         .type _start, @function    
 _start:
 #ifdef	__arch64__
-        lli	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */
-        lli	r2, r0, _SDA2_BASE_
-        lli	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */
+        addlik	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */
+        addlik	r2, r0, _SDA2_BASE_
+        addlik	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */
         brealid	r15, _crtinit               /* Initialize BSS and run program */
         nop
 	addlik	r5, r3, 0
diff --git a/libgloss/microblaze/crt3.S b/libgloss/microblaze/crt3.S
index a8bc7839b..bc32cda86 100644
--- a/libgloss/microblaze/crt3.S
+++ b/libgloss/microblaze/crt3.S
@@ -62,9 +62,9 @@
         .type _start, @function    
 _start:
 #ifdef	__arch64__
-        lli	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */
-        lli	r2, r0, _SDA2_BASE_
-        lli	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */
+        addlik	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */
+        addlik	r2, r0, _SDA2_BASE_
+        addlik	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */
 
         brealid	r15, _crtinit               /* Initialize BSS and run program */
         nop
diff --git a/libgloss/microblaze/crt4.S b/libgloss/microblaze/crt4.S
index 54ba473ea..a25c84734 100644
--- a/libgloss/microblaze/crt4.S
+++ b/libgloss/microblaze/crt4.S
@@ -63,9 +63,9 @@
         .type _start, @function    
 _start:
 #ifdef	__arch64__
-        lli	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */
-        lli	r2, r0, _SDA2_BASE_
-        lli	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */
+        addlik	r13, r0, _SDA_BASE_         /* Set the Small Data Anchors and the stack pointer */
+        addlik	r2, r0, _SDA2_BASE_
+        addlik	r1, r0, _stack-32           /* 16 bytes (4 words are needed by crtinit for args and link reg */
 
         brealid	r15, _crtinit               /* Initialize BSS and run program */
 	nop
-- 
2.17.1