Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115163
b: refs/heads/master
c: b4f5c58
h: refs/heads/master
i:
  115161: a820c48
  115159: e41c11d
v: v3
  • Loading branch information
Graf Yang authored and Bryan Wu committed Oct 16, 2008
1 parent 261aecd commit 1543a53
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 121e598f5d5a9cc7e3bbd203a5c97afa1c46c521
refs/heads/master: b4f5c58fd1de11f698d95beb1e67d5b8f97fbe66
54 changes: 54 additions & 0 deletions trunk/arch/blackfin/mach-common/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,60 @@ ENTRY(_real_start)
w[p0] = r0;
ssync;

#if L1_DATA_A_LENGTH > 0
r1.l = __sbss_l1;
r1.h = __sbss_l1;
r2.l = __ebss_l1;
r2.h = __ebss_l1;
r0 = 0 (z);
r2 = r2 - r1;
cc = r2 == 0;
if cc jump .L_a_l1_done;
r2 >>= 2;
p1 = r1;
p2 = r2;
lsetup (.L_clear_a_l1, .L_clear_a_l1 ) lc0 = p2;
.L_clear_a_l1:
[p1++] = r0;
.L_a_l1_done:
#endif

#if L1_DATA_B_LENGTH > 0
r1.l = __sbss_b_l1;
r1.h = __sbss_b_l1;
r2.l = __ebss_b_l1;
r2.h = __ebss_b_l1;
r0 = 0 (z);
r2 = r2 - r1;
cc = r2 == 0;
if cc jump .L_b_l1_done;
r2 >>= 2;
p1 = r1;
p2 = r2;
lsetup (.L_clear_b_l1, .L_clear_b_l1 ) lc0 = p2;
.L_clear_b_l1:
[p1++] = r0;
.L_b_l1_done:
#endif

#if L2_LENGTH > 0
r1.l = __sbss_l2;
r1.h = __sbss_l2;
r2.l = __ebss_l2;
r2.h = __ebss_l2;
r0 = 0 (z);
r2 = r2 - r1;
cc = r2 == 0;
if cc jump .L_l2_done;
r2 >>= 2;
p1 = r1;
p2 = r2;
lsetup (.L_clear_l2, .L_clear_l2 ) lc0 = p2;
.L_clear_l2:
[p1++] = r0;
.L_l2_done:
#endif

/* Zero out the bss region
* Note: this will fail if bss is 0 bytes ...
*/
Expand Down

0 comments on commit 1543a53

Please sign in to comment.