diff options
author | Jean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com> | 2005-01-27 14:16:11 +0000 |
---|---|---|
committer | Jean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com> | 2005-01-27 14:16:11 +0000 |
commit | b3d16d9df8d54a47c4ebaa41638af483dd719299 (patch) | |
tree | 6963ee2c476453b6592c81531e873e0696c1a760 /firmware | |
parent | 0d72de954a343e4c18401e6de9d54a0d183705b0 (diff) | |
download | rockbox-b3d16d9df8d54a47c4ebaa41638af483dd719299.tar.gz rockbox-b3d16d9df8d54a47c4ebaa41638af483dd719299.zip |
better comments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5677 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/crt0.S | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/crt0.S b/firmware/crt0.S index a0ff26684e..f2d4c81ddc 100644 --- a/firmware/crt0.S +++ b/firmware/crt0.S | |||
@@ -30,7 +30,6 @@ start: | |||
30 | clrsr ie | 30 | clrsr ie |
31 | clrsr te | 31 | clrsr te |
32 | ld a14, #0x3F0000 | 32 | ld a14, #0x3F0000 |
33 | ;; copy data section from flash to ram. | ||
34 | 33 | ||
35 | ld r5, 0xA5 | 34 | ld r5, 0xA5 |
36 | ldb @[a14 + 6], r5 ; disable watchdog | 35 | ldb @[a14 + 6], r5 ; disable watchdog |
@@ -38,6 +37,7 @@ start: | |||
38 | ld a11, #(_datacopy) ; where the data section is in the flash | 37 | ld a11, #(_datacopy) ; where the data section is in the flash |
39 | ld a8, #(_datastart) ; destination | 38 | ld a8, #(_datastart) ; destination |
40 | 39 | ||
40 | ;; copy data section from flash to ram. | ||
41 | ld a9, #_datasize | 41 | ld a9, #_datasize |
42 | ld r6, e9 | 42 | ld r6, e9 |
43 | cmp eq, r6, #0 | 43 | cmp eq, r6, #0 |
@@ -57,6 +57,7 @@ start: | |||
57 | brt .data_copy_loop | 57 | brt .data_copy_loop |
58 | .data_copy_end: | 58 | .data_copy_end: |
59 | 59 | ||
60 | ;; zero out bss | ||
60 | ld r2, #0 | 61 | ld r2, #0 |
61 | ld a8, #(_bssstart) ; destination | 62 | ld a8, #(_bssstart) ; destination |
62 | ld a9, #_bsssize | 63 | ld a9, #_bsssize |
@@ -76,7 +77,8 @@ start: | |||
76 | cmp ugt, r9, #0 | 77 | cmp ugt, r9, #0 |
77 | brt .bss_init_loop | 78 | brt .bss_init_loop |
78 | .bss_init_end: | 79 | .bss_init_end: |
79 | 80 | ||
81 | ;; set stack pointer | ||
80 | ld a15, _stackend | 82 | ld a15, _stackend |
81 | 83 | ||
82 | ;; go! | 84 | ;; go! |