2007-01-03 Kazu Hirata <kazu@codesourcery.com>

Merge from newlib-csl-20060320-branch:
        2006-12-22  Nathan Sidwell  <nathan@codesourcery.com>

        * m68k/cf-crt0.S (__start): Adjust semihosting.
This commit is contained in:
Jeff Johnston 2007-01-03 16:47:53 +00:00
parent 960725d6ed
commit 35b4db0f30
2 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2007-01-03 Kazu Hirata <kazu@codesourcery.com>
Merge from newlib-csl-20060320-branch:
2006-12-22 Nathan Sidwell <nathan@codesourcery.com>
* m68k/cf-crt0.S (__start): Adjust semihosting.
2007-01-02 Kazu Hirata <kazu@codesourcery.com> 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
Merge from newlib-csl-20060320-branch: Merge from newlib-csl-20060320-branch:

View File

@ -29,17 +29,14 @@ __start:
#if HOSTED #if HOSTED
/* INIT_SIM syscall. Allows changing sp & d1. */ /* INIT_SIM syscall. Allows changing sp & d1. */
move.l IMM(1),d0 move.l IMM(1),d0
.align 4
/* The halt sequence must be 'nop; halt' and aligned to a 4 byte /* The semihosting sequence is 'nop; halt;sentinel' aligned to
boundary. */ a 4 byte boundary. The sentinel is an ill formed instruction
(movec %sp,0). The debugger will adjust the pc, so it is never
executed. */
.balignw 4,0x4e71
nop nop
halt halt
/* This sentinel instruction value must be immediately after
the halt instruction. The debugger will adjust the pc, so
that it is never executed. This instruction is
'movec %sp,0'. */
.long 0x4e7bf000 .long 0x4e7bf000
#endif #endif
move.l d1,sp@- move.l d1,sp@-