2008-10-06 Bill Tompkins <bill+newlib@key-square.com>

* arm/crt0.S: Fix calling hardware_init_hook() or software_init_hook()
        under thumb and thumb2.
This commit is contained in:
Jeff Johnston 2008-10-06 20:55:19 +00:00
parent 0d2597f5a0
commit 455e95b5bd
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-10-06 Bill Tompkins <bill+newlib@key-square.com>
* arm/crt0.S: Fix calling hardware_init_hook() or software_init_hook()
under thumb and thumb2.
2008-09-24 DJ Delorie <dj@redhat.com>
* m32c/varvects.S: New.

View File

@ -167,14 +167,23 @@ __change_mode:
ldr r3, .Lhwinit
cmp r3, #0
beq .LC24
#if defined(__thumb__) || defined(__thumb2__)
blx r3
#else
mov lr, pc
mov pc, r3
#endif
.LC24:
ldr r3, .Lswinit
cmp r3, #0
beq .LC25
#if defined(__thumb__) || defined(__thumb2__)
blx r3
#else
mov lr, pc
mov pc, r3
#endif
.LC25:
mov r0, #0 /* no arguments */
mov r1, #0 /* no argv either */