This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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");
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]