sim-card
/
sam7-util
Archived
9
0
Fork 0
Utility for SAM-BA flashing of AT91SAM7
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
sam7-util/loader/crt0.S

28 lines
458 B

//
// loader/crt0.S
//
// Copyright (C) 2006 Erik Gilling, all rights reserved
//
// 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, version 2.
//
//
.EQU STACK, 0x201C00
.code 32
.align 2
.global _entry
.func _entry
_entry:
// init stack
ldr sp, =STACK
// save lr
stmfd sp!, {lr}
bl main
ldmia sp!, {r0}
bx r0