2006-03-23  Mark Mitchell  <mark@codesourcery.com>

	* libc/sys/arm/Makefile.am (extra_objs): Add _exit.o _nmi_isr.o
	_fault_isr.o.
	* libc/sys/arm/Makefile.in: Regenerated.
	* libc/sys/arm/_exit.c: New file.
	* libc/sys/arm/_fault_isr.c: Likewise.
	* libc/sys/arm/_nmi_isr.c: Likewise.
	* libc/sys/arm/configure.in (--enable-newlib-arm-v7m): New option.
	* libc/sys/arm/configure:
	* libc/sys/arm/crt0.S (_start): Do not use semihosting calls in
	_start when configured for ARM V7M.  Do not call
	initialise_monitor_handles.  Indent preprocessor directives.
	(.isr_vector): New section, on ARM V7M.
	* libc/sys/arm/swi.h (do_AngelSWI): New function.
	* syscalls.c (_exit): Remove.
	(do_AngelSWI): Likewise.
	(CHECK_INIT): Remove.
	(remap_handle): Call initialise_monitor_handles.
	(__arm_monitor_handles_lock): New variable.
	(initialise_monitor_handles): Make sure to run only once.
	* libgloss/m68k/Makefile.in (BDM_BSP, BDM_OBJS, BDM_ISRS): New.
	(CF_SCRIPTS): Rename dbug scripts.  Add bdm scripts. Add m5485
	scripts.
	(all): Add new targets.
	(BDM_BSP): New target.
	(bdm-isv.o, bdm-exit.o, bdm-outbyte.o, bdm-semihost.o): New
	targets.
	(BDM_ISRS): New targets.
	(m5208evb.ld, m5213evb.ld, m5235evb.ld, m5272c3.ld, m5282evb.ld):
	Rename and adjust.
	(m5485evb-dbug): New.
	(m5208evb-bdm.ld, m5213evb-bdm.ld, m5235evb-bdm.ld,
	m5272c3-bdm.ld, m5282evb-bdm.ld, m5485evb-bdm.ld): New.
	(install): Add BDM_BSP.
	* libgloss/m68k/bdm-exit.c: New
	* libgloss/m68k/bdm-inbyte.c: New
	* libgloss/m68k/bdm-outbyte.c: New
	* libgloss/m68k/bdm-semihost.c: New
	* libgloss/m68k/bdm-semihost.h: New
	* libgloss/m68k/bdm-isrs.c: New.
	* libgloss/m68k/bdm-isv.c: New.
	* cf-dbug.sc: Renamed to ...
	* cf.sc: ... here.  Add bdm flexibility. Remove GROUP
fix copyright typos
	* libgloss/m68k/Makefile.in (CF_SCRIPTS): Add m5329 board.
	Reorder.
	(*-dbug.ld, *-bdm.ld): Add appropriate IO definition.
	(m5329evb-dbug.ld, m5329evb-bdm.ld): New.
	* cf.sc (GROUP): Revert previous change.  Add IO library.
	* libgloss/m68k/bdm-isv.c (software_init_hook): Fix trap numbering.
	Bug 576.
	* mt/startup-16-002.S (.internal_io): Make @nobits.
	* mt/startup-16-003.S (.internal_io): Make @nobits.
	* mt/startup-ms2.S (.internal_io): Make @nobits.
	* libc/sys/arm/Makefile.am (lib_a_SOURCES): Add aeabi_memclr.c,
	aeabi_memcpy.c, aeabi_memmove.c and aeabi_memset.c.
	* libc/sys/arm/Makefile.in: Regenerate.
	* libc/sys/arm/aeabi.h: New file.
	* libc/sys/arm/aeabi_memclr.c: New file.
	* libc/sys/arm/aeabi_memcpy.c: New file.
	* libc/sys/arm/aeabi_memmove.c: New file.
	* libc/sys/arm/aeabi_memset.c: New file.
Add semihosting support for BDM mode on ColdFire
Add more semihosting support for BDM mode on ColdFire
	* libgloss/m68k/Makefile.in (BDM_SYSOBJS): Remove bdm-outbyte.o
	* libgloss/m68k/bdm-outbyte.c: Delete.
	* libgloss/m68k/bdm-semihost.h (BDM_OUTBYTE): Mark as obsolete.
	* libgloss/m68k/Makefile.in (m52235-dbug.ld, m52235-bdm.ld): New
	scripts.
	Issue #667
	* newlib/libc/sys/arm/syscalls.c (findslot): Call
	initialise_monitor_handles.
	(remap_handle): Do not call initialise_monitor_handles.
	* libgloss/arm/Makefile.in (LMS_SCRIPTS): New variable.
	(LMS_INSTALL): Likewise.
	(install): Depend on LMS_INSTALL.
	(install-lms): New target.
	* libgloss/arm/elf-cm3.lmd: New file.
	* libgloss/arm/elf-lm3s10x.ld: Likewise.
	* libgloss/arm/elf-lm3s301.ld: New script.
	* libgloss/arm/elf-lm3s31x.ld: Likewise.
	* libgloss/m68k/Makefile.in (BDM_SYSOBJS): Remove bdm-inbyte.o.
	Add bdm-time.o.
	* libgloss/m68k/bdm-close.c: Add copyright notice.
	* libgloss/m68k/bdm-fstat.c: Add copyright notice.
	* libgloss/m68k/bdm-gettimeofday.c: Add copyright notice. Fix &/|
	thinko.
	* libgloss/m68k/bdm-inbyte.c: Remove.
	* libgloss/m68k/bdm-isatty.c: Add copyright notice.
	* libgloss/m68k/bdm-lseek.c: Add copyright notice.
	* libgloss/m68k/bdm-open.c: Add copyright notice.
	* libgloss/m68k/bdm-read.c: Add copyright notice.
	* libgloss/m68k/bdm-rename.c: Add copyright notice.
	* libgloss/m68k/bdm-stat.c: Add copyright notice.
	* libgloss/m68k/bdm-system.c: Add copyright notice.
	* libgloss/m68k/bdm-time.c: New.
	* libgloss/m68k/bdm-unlink.c: Add copyright notice.
	* libgloss/m68k/bdm-write.c: Add copyright notice.
fix changelog
	* libgloss/m68k/bdm-system.c (_system): Properly encode non
	failure exit code.
Add additional ARM_RDI_MONITOR calls
	libgloss/
	* m68k/bdm-system.c (_system): Support system(NULL).
	Issue #733
	libgloss/
	* arm/Makefile.in (LMS_SCRIPTS): Add lm3s301.ld and lm3s31x.ld.