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:
parent
0d2597f5a0
commit
455e95b5bd
|
@ -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>
|
2008-09-24 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
* m32c/varvects.S: New.
|
* m32c/varvects.S: New.
|
||||||
|
|
|
@ -167,14 +167,23 @@ __change_mode:
|
||||||
ldr r3, .Lhwinit
|
ldr r3, .Lhwinit
|
||||||
cmp r3, #0
|
cmp r3, #0
|
||||||
beq .LC24
|
beq .LC24
|
||||||
|
#if defined(__thumb__) || defined(__thumb2__)
|
||||||
|
blx r3
|
||||||
|
#else
|
||||||
mov lr, pc
|
mov lr, pc
|
||||||
mov pc, r3
|
mov pc, r3
|
||||||
|
#endif
|
||||||
.LC24:
|
.LC24:
|
||||||
ldr r3, .Lswinit
|
ldr r3, .Lswinit
|
||||||
cmp r3, #0
|
cmp r3, #0
|
||||||
beq .LC25
|
beq .LC25
|
||||||
|
#if defined(__thumb__) || defined(__thumb2__)
|
||||||
|
blx r3
|
||||||
|
#else
|
||||||
mov lr, pc
|
mov lr, pc
|
||||||
mov pc, r3
|
mov pc, r3
|
||||||
|
#endif
|
||||||
|
|
||||||
.LC25:
|
.LC25:
|
||||||
mov r0, #0 /* no arguments */
|
mov r0, #0 /* no arguments */
|
||||||
mov r1, #0 /* no argv either */
|
mov r1, #0 /* no argv either */
|
||||||
|
|
Loading…
Reference in New Issue