Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-01-02 20:03:41 +0300
committerJeff Johnston <jjohnstn@redhat.com>2007-01-02 20:03:41 +0300
commitacdd81c29ac9359bd2eb97d60644ed3d6a568225 (patch)
treec919d5582ac0fd1b0c63b6254e2524f87ccf15e4 /libgloss/m68k
parent9cd4a2de61d35b0c80aae2faf75a3d9b8632eab5 (diff)
2007-01-02 Kazu Hirata <kazu@codesourcery.com>
Merge from newlib-csl-20060320-branch: 2006-12-22 Nathan Sidwell <nathan@codesourcery.com> * m68k/cf-hosted.S (__hosted): Adjust semihosting.
Diffstat (limited to 'libgloss/m68k')
-rw-r--r--libgloss/m68k/cf-hosted.S14
1 files changed, 6 insertions, 8 deletions
diff --git a/libgloss/m68k/cf-hosted.S b/libgloss/m68k/cf-hosted.S
index 9cf88209c..ed8e8917f 100644
--- a/libgloss/m68k/cf-hosted.S
+++ b/libgloss/m68k/cf-hosted.S
@@ -22,17 +22,15 @@ __hosted:
linkw %fp,#0
movel %fp@(8),%d0
movel %fp@(12),%d1
- .align 4
- /* The halt sequence must be 'nop; halt' and aligned to a 4 byte
- boundary. */
+ /* The semihosting sequence is 'nop; halt;sentinel' aligned to
+ 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
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
+
unlk %fp
rts