mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2025-04-21 12:27:27 +03:00
change the usbboot to ingenic-tools (host side code)
add usb-boot to keep the device code.
This commit is contained in:
38
usb-boot/stage1/head.S
Normal file
38
usb-boot/stage1/head.S
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* head.S
|
||||
*
|
||||
* Entry point of the firmware.
|
||||
* The firmware code are executed in the ICache.
|
||||
*
|
||||
* Copyright (C) 2006 Ingenic Semiconductor Inc.
|
||||
*
|
||||
*/
|
||||
|
||||
.text
|
||||
|
||||
.extern c_main
|
||||
|
||||
.globl _start
|
||||
.set noreorder
|
||||
_start:
|
||||
b real_start
|
||||
nop
|
||||
/* reserve 8 words for args */
|
||||
.word 0x0 //it's address is 0x80000008
|
||||
.word 0x0
|
||||
.word 0x0
|
||||
.word 0x0
|
||||
.word 0x0
|
||||
.word 0x0
|
||||
.word 0x0
|
||||
.word 0x0
|
||||
|
||||
real_start:
|
||||
//----------------------------------------------------
|
||||
// setup stack, jump to C code
|
||||
//----------------------------------------------------
|
||||
la $29, 0x80004000 // sp
|
||||
j c_main
|
||||
nop
|
||||
|
||||
.set reorder
|
||||
Reference in New Issue
Block a user