[patch] libgloss/m68k/fido-exit.c: Use stop #0x700

Jeff Johnston jjohnstn@redhat.com
Thu May 3 01:34:00 GMT 2007


Ok.

-- Jeff J.

Kazu Hirata wrote:
> Hi,
>
> Attached is a patch to use stop #0x700.
>
> This way we can prevent interrupts from being serviced while the
> processor is in the stopped state.
>
> Tested with "Hello, world".  OK to apply?
>
> Kazu Hirata
>
> 2007-05-02  Kazu Hirata  <kazu@codesourcery.com>
>
> 	* m68k/fido-_exit.c (_exit): Use stop #0x700.
>
> Index: libgloss/m68k/fido-_exit.c
> ===================================================================
> RCS file: /cvs/src/src/libgloss/m68k/fido-_exit.c,v
> retrieving revision 1.2
> diff -u -r1.2 fido-_exit.c
> --- libgloss/m68k/fido-_exit.c	18 Dec 2006 21:48:18 -0000	1.2
> +++ libgloss/m68k/fido-_exit.c	2 May 2007 18:03:02 -0000
> @@ -19,5 +19,5 @@
>  _exit (int code) 
>  {
>    while (1)
> -    asm volatile ("stop #0");
> +    asm volatile ("stop #0x700");
>  }
>   



More information about the Newlib mailing list