forked from len0rd/rockbox
Fixed formatting (uniform indentation of 4 spaces, removed tab chars). Some slight optimisations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6822 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
055303ad7d
commit
06109b0202
1 changed files with 367 additions and 366 deletions
|
@ -16,13 +16,14 @@
|
||||||
* KIND, either express or implied.
|
* KIND, either express or implied.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
|
||||||
.section .init.text
|
.section .init.text
|
||||||
.global start
|
.global start
|
||||||
start:
|
start:
|
||||||
#if CONFIG_CPU == TCC730
|
#if CONFIG_CPU == TCC730
|
||||||
|
/* Platform: Gmini 120/SP */
|
||||||
;; disable all interrupts
|
;; disable all interrupts
|
||||||
clrsr fe
|
clrsr fe
|
||||||
clrsr ie
|
clrsr ie
|
||||||
|
@ -145,7 +146,7 @@ irq_handler:
|
||||||
movec.l %d0,%rambar0
|
movec.l %d0,%rambar0
|
||||||
|
|
||||||
/* Chip select 0 - Flash ROM */
|
/* Chip select 0 - Flash ROM */
|
||||||
move.l #0x00000000,%d0 /* CSAR0 - Base = 0x00000000 */
|
moveq.l #0x00,%d0 /* CSAR0 - Base = 0x00000000 */
|
||||||
move.l %d0,(0x080,%a0)
|
move.l %d0,(0x080,%a0)
|
||||||
move.l #0x001f0101,%d0 /* CSMR0 - 2M, All access, write protect */
|
move.l #0x001f0101,%d0 /* CSMR0 - 2M, All access, write protect */
|
||||||
move.l %d0,(0x084,%a0)
|
move.l %d0,(0x084,%a0)
|
||||||
|
@ -155,7 +156,7 @@ irq_handler:
|
||||||
/* Chip select 1 - LCD controller */
|
/* Chip select 1 - LCD controller */
|
||||||
move.l #0xf0000000,%d0 /* CSAR1 - Base = 0xf0000000 */
|
move.l #0xf0000000,%d0 /* CSAR1 - Base = 0xf0000000 */
|
||||||
move.l %d0,(0x08c,%a0)
|
move.l %d0,(0x08c,%a0)
|
||||||
move.l #0x00000075,%d0 /* CSMR1 - 64K, Only data access */
|
moveq.l #0x75,%d0 /* CSMR1 - 64K, Only data access */
|
||||||
move.l %d0,(0x090,%a0)
|
move.l %d0,(0x090,%a0)
|
||||||
move.l #0x00000180,%d0 /* CSCR1 - 0 wait states, 16 bits, no bursts */
|
move.l #0x00000180,%d0 /* CSCR1 - 0 wait states, 16 bits, no bursts */
|
||||||
move.l %d0,(0x094,%a0)
|
move.l %d0,(0x094,%a0)
|
||||||
|
@ -180,7 +181,7 @@ irq_handler:
|
||||||
cmp.l %d0,%d1
|
cmp.l %d0,%d1
|
||||||
bne .nocookie
|
bne .nocookie
|
||||||
/* Clear the cookie again */
|
/* Clear the cookie again */
|
||||||
move.l #0,(%a2)
|
clr.l (%a2)
|
||||||
jmp 8
|
jmp 8
|
||||||
|
|
||||||
.nocookie:
|
.nocookie:
|
||||||
|
@ -245,7 +246,7 @@ irq_handler:
|
||||||
/* Cache enabled in SDRAM only, buffered writes enabled */
|
/* Cache enabled in SDRAM only, buffered writes enabled */
|
||||||
move.l #0x3103c020,%d0
|
move.l #0x3103c020,%d0
|
||||||
movec.l %d0,%acr0
|
movec.l %d0,%acr0
|
||||||
move.l #0,%d0
|
moveq.l #0,%d0
|
||||||
movec.l %d0,%acr1
|
movec.l %d0,%acr1
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue