1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-25 23:24:05 +02:00
xburst-tools/xbboot/target-stage1/head.S

40 lines
712 B
ArmAsm
Raw Normal View History

2009-08-21 09:04:09 +03:00
//
2010-04-28 13:29:53 +03:00
// Authors: Wolfgang Spraul <wolfgang@sharism.cc>
2009-08-21 09:04:09 +03:00
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version
// 3 of the License, or (at your option) any later version.
//
.text
.extern c_main
.globl _start
.set noreorder
_start:
b real_start
nop
// 8 words for firmware parameters (0x80002008)
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
.word 0x0
real_start:
li $8, 0x0040FC04
mtc0 $8, $12 // CP0_STATUS
li $9, 0x00800000
mtc0 $9, $13 // CP0_CAUSE
2009-08-21 09:04:09 +03:00
la $29, 0x80004000 // setup stack (sp)
j c_main
nop
.set reorder