aboutsummaryrefslogtreecommitdiff
path: root/lib/usb/usb_standard.c
diff options
context:
space:
mode:
authorUwe Hermann2010-10-19 02:00:28 +0200
committerUwe Hermann2010-10-19 02:00:28 +0200
commit1621fde1f47c5b5f86942562b955bebfb45683df (patch)
treee09bb7c4924b2c2d856bc29521882e9b16bdee7f /lib/usb/usb_standard.c
parent68b7e255ad8d0bf5529855773b7acdb9ff83835c (diff)
Add proper C runtime init, add reset handler.
The C runtime wasn't initialized correctly (there was garbage in the data and bss sections). Add a reset_handler which initializes these sections before calling the application's main() function. The initial stack pointer is also defined in the linker script, allowing the application to override with a linker command line option "-Wl,--defsym,_stack=0x20005000". Thanks to Gareth McMullin <gareth@blacksphere.co.nz>.
Diffstat (limited to 'lib/usb/usb_standard.c')
0 files changed, 0 insertions, 0 deletions