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:
authorDJ Delorie <dj@redhat.com>2005-08-19 20:18:04 +0400
committerDJ Delorie <dj@redhat.com>2005-08-19 20:18:04 +0400
commit82ef66c933bb3d90a8a27a0c6c18a9b9bfe3d8bc (patch)
tree614eb4b5db388548a80a1da593fa3f5b11b448fc /libgloss/m32c/m32csys.h
parentbabc4e5424c9c850d6e7111f98edc40f5282c507 (diff)
* m32c/Makefile.in (m16cmon.ld, m32cmon.ld): Fix output names.
(*.o): Add dependencies. * m32c/m32csys.h: Move syscall location to 0x400 as per Renesas recommendations.
Diffstat (limited to 'libgloss/m32c/m32csys.h')
-rw-r--r--libgloss/m32c/m32csys.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libgloss/m32c/m32csys.h b/libgloss/m32c/m32csys.h
index 7381a86bb..e8b9b5f5d 100644
--- a/libgloss/m32c/m32csys.h
+++ b/libgloss/m32c/m32csys.h
@@ -32,12 +32,12 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "syscall.h"
+/* Both the simulators and monitors reserve RAM areas 0x400 through
+ 0x4ff for their internal use. We use one of those memory locations
+ as our system call trap. */
+
#define POUND #
-#if defined(__r8c_cpu__) || defined(__m16c_cpu__)
-#define SYSCALL(N) mov.b POUND N,r0l | ste.b r0l,0xe0000
-#else
-#define SYSCALL(N) mov.b POUND N,0xe0000
-#endif
+#define SYSCALL(N) mov.b POUND N,0x400
#define SYS__exit SYS_exit