source: rtems/c/src/lib/libbsp/h8300/h8sim/console/syscalls.S @ 8b33b6af

4.104.115
Last change on this file since 8b33b6af was 8b33b6af, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 25, 2008 at 1:34:18 PM

2008-09-25 Joel Sherrill <joel.sherrill@…>

  • console/console-io.c: Add missing file and remove junk code.
  • console/syscalls.S: New file.
  • Property mode set to 100644
File size: 739 bytes
Line 
1/*
2 *  System call support for simulator in gdb.
3 *  Copied from newlib 1.16.0.
4 *
5 *  $Id$
6 */
7
8;;;; libc/machine/h8300/setarch.h
9#ifdef __H8300H__
10#ifdef __NORMAL_MODE__
11        .h8300hn
12#else
13        .h8300h
14#endif
15#endif
16#ifdef __H8300S__
17#ifdef __NORMAL_MODE__
18        .h8300sn
19#else
20        .h8300s
21#endif
22#endif
23#ifdef __H8300SX__
24#ifdef __NORMAL_MODE__
25        .h8300sxn
26#else
27        .h8300sx
28#endif
29#endif
30
31;;;; libc/sys/h8300/write.S
32;ssize_t _sys_write(int fd, const void *buf, size_t count);
33;Integer arguments have to be zero extended.
34
35; #include "setarch.h"
36
37        .section .text
38        .align 2
39        .global __sys_write
40__sys_write:
41#if defined(__H8300H__) || defined(__H8300S__) || defined (__H8300SX__)
42#if __INT_MAX__ == 32767
43        extu.l  er0
44#endif
45#endif
46        jsr @@0xc7
47        rts
48        .end
Note: See TracBrowser for help on using the repository browser.