1
0
Fork 0
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:
Jens Arnold 2005-06-22 20:43:39 +00:00
parent 055303ad7d
commit 06109b0202

View file

@ -16,13 +16,14 @@
* KIND, either express or implied.
*
****************************************************************************/
#include "config.h"
#include "cpu.h"
#include "config.h"
#include "cpu.h"
.section .init.text
.global start
start:
#if CONFIG_CPU == TCC730
/* Platform: Gmini 120/SP */
;; disable all interrupts
clrsr fe
clrsr ie
@ -145,7 +146,7 @@ irq_handler:
movec.l %d0,%rambar0
/* 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 #0x001f0101,%d0 /* CSMR0 - 2M, All access, write protect */
move.l %d0,(0x084,%a0)
@ -155,7 +156,7 @@ irq_handler:
/* Chip select 1 - LCD controller */
move.l #0xf0000000,%d0 /* CSAR1 - Base = 0xf0000000 */
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 #0x00000180,%d0 /* CSCR1 - 0 wait states, 16 bits, no bursts */
move.l %d0,(0x094,%a0)
@ -180,7 +181,7 @@ irq_handler:
cmp.l %d0,%d1
bne .nocookie
/* Clear the cookie again */
move.l #0,(%a2)
clr.l (%a2)
jmp 8
.nocookie:
@ -245,7 +246,7 @@ irq_handler:
/* Cache enabled in SDRAM only, buffered writes enabled */
move.l #0x3103c020,%d0
movec.l %d0,%acr0
move.l #0,%d0
moveq.l #0,%d0
movec.l %d0,%acr1
#ifndef BOOTLOADER