forked from len0rd/rockbox
simplification and better integration of the gmini port
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5631 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
70fba66708
commit
93f917f541
1 changed files with 9 additions and 18 deletions
|
@ -21,17 +21,20 @@
|
||||||
|
|
||||||
//#define BOOTLOADER
|
//#define BOOTLOADER
|
||||||
|
|
||||||
|
.section .init.text
|
||||||
|
.global start
|
||||||
|
start:
|
||||||
#if defined(ARCHOS_GMINI120)
|
#if defined(ARCHOS_GMINI120)
|
||||||
.section .text
|
|
||||||
.global _start
|
|
||||||
_start:
|
|
||||||
;; disable all interrupts
|
;; disable all interrupts
|
||||||
clrsr fe
|
clrsr fe
|
||||||
clrsr ie
|
clrsr ie
|
||||||
clrsr te
|
clrsr te
|
||||||
|
ld a14, #0x3F0000
|
||||||
;; copy data section from flash to ram.
|
;; copy data section from flash to ram.
|
||||||
|
|
||||||
|
ld r5, 0xA5
|
||||||
|
ldb @[a14 + 6], r5 ; disable watchdog
|
||||||
|
|
||||||
ld a11, #(_datacopy) ; where the data section is in the flash
|
ld a11, #(_datacopy) ; where the data section is in the flash
|
||||||
ld a8, #(_datastart) ; destination
|
ld a8, #(_datastart) ; destination
|
||||||
|
|
||||||
|
@ -56,9 +59,9 @@ _start:
|
||||||
|
|
||||||
ld r2, #0
|
ld r2, #0
|
||||||
ld a8, #(_bssstart) ; destination
|
ld a8, #(_bssstart) ; destination
|
||||||
ld a9, #_bsssize
|
ld a9, #_bsssize
|
||||||
|
|
||||||
ld r6, e9
|
ld r6, e9
|
||||||
|
|
||||||
cmp eq, r6, #0
|
cmp eq, r6, #0
|
||||||
brf .bss_init_loop
|
brf .bss_init_loop
|
||||||
cmp eq, r9, #0
|
cmp eq, r9, #0
|
||||||
|
@ -76,12 +79,6 @@ _start:
|
||||||
|
|
||||||
ld a15, _stackend
|
ld a15, _stackend
|
||||||
|
|
||||||
;; rest of the setup in C
|
|
||||||
jsr _cpu_setup
|
|
||||||
|
|
||||||
;; enable IRQs (keep traps and fast interrupts low)
|
|
||||||
setsr ie
|
|
||||||
|
|
||||||
;; go!
|
;; go!
|
||||||
jsr _main
|
jsr _main
|
||||||
|
|
||||||
|
@ -119,9 +116,6 @@ irq_handler:
|
||||||
ret_irq
|
ret_irq
|
||||||
|
|
||||||
#elif defined(IRIVER_H100)
|
#elif defined(IRIVER_H100)
|
||||||
.section .init.text
|
|
||||||
.global start
|
|
||||||
start:
|
|
||||||
|
|
||||||
/* Platform: iRiver H1xx */
|
/* Platform: iRiver H1xx */
|
||||||
move.w #0x2700,%sr
|
move.w #0x2700,%sr
|
||||||
|
@ -264,9 +258,6 @@ vectors:
|
||||||
.long _stackend
|
.long _stackend
|
||||||
.long start
|
.long start
|
||||||
#else
|
#else
|
||||||
.section .init.text
|
|
||||||
.global start
|
|
||||||
start:
|
|
||||||
/* Platform: Archos Jukebox
|
/* Platform: Archos Jukebox
|
||||||
* We begin with some tricks. If we have built our code to be loaded
|
* We begin with some tricks. If we have built our code to be loaded
|
||||||
* via the standalone GDB stub, we will have out VBR at some other
|
* via the standalone GDB stub, we will have out VBR at some other
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue