mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 12:05:47 +08:00
* libc/sys/h8300hms/setarch.h: New file.
* libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S, libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S, libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S, libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
This commit is contained in:
parent
68afda5334
commit
d9e4104b31
@ -1,3 +1,11 @@
|
|||||||
|
2003-06-10 Richard Sandiford <rsandifo@redhat.com>
|
||||||
|
|
||||||
|
* libc/sys/h8300hms/setarch.h: New file.
|
||||||
|
* libc/sys/h8300hms/close.S, libc/sys/h8300hms/fstat.S,
|
||||||
|
libc/sys/h8300hms/lseek.S, libc/sys/h8300hms/open.S,
|
||||||
|
libc/sys/h8300hms/read.S, libc/sys/h8300hms/stat.S,
|
||||||
|
libc/sys/h8300hms/write.S, libc/sys/h8300hms/crt0.S: Use it.
|
||||||
|
|
||||||
2003-06-06 Jeff Johnston <jjohnstn@redhat.com>
|
2003-06-06 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* libc/argz/argz_add.c: Change to use _DEFUN macro for function
|
* libc/argz/argz_add.c: Change to use _DEFUN macro for function
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
;int close(int fd);
|
;int close(int fd);
|
||||||
;Integer arguments have to be zero extended.
|
;Integer arguments have to be zero extended.
|
||||||
|
|
||||||
#if defined(__H8300H__)
|
#include "setarch.h"
|
||||||
.h8300h
|
|
||||||
#endif
|
|
||||||
#if defined(__H8300S__)
|
|
||||||
.h8300s
|
|
||||||
#endif
|
|
||||||
|
|
||||||
.section .text
|
.section .text
|
||||||
.align 2
|
.align 2
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
; h8/300 and h8/300h start up file.
|
; h8/300 and h8/300h start up file.
|
||||||
|
|
||||||
|
#include "setarch.h"
|
||||||
|
|
||||||
#ifdef __H8300__
|
#ifdef __H8300__
|
||||||
|
|
||||||
.section .text
|
.section .text
|
||||||
@ -36,11 +38,6 @@ _stack: .word 1
|
|||||||
|
|
||||||
#ifdef __H8300H__
|
#ifdef __H8300H__
|
||||||
|
|
||||||
#ifdef __NORMAL_MODE__
|
|
||||||
.h8300hn
|
|
||||||
#else
|
|
||||||
.h8300h
|
|
||||||
#endif
|
|
||||||
.section .text
|
.section .text
|
||||||
.global _start
|
.global _start
|
||||||
_start:
|
_start:
|
||||||
@ -74,11 +71,7 @@ _stack: .long 1
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __H8300S__
|
#ifdef __H8300S__
|
||||||
#ifdef __NORMAL_MODE__
|
|
||||||
.h8300sn
|
|
||||||
#else
|
|
||||||
.h8300s
|
|
||||||
#endif
|
|
||||||
.section .text
|
.section .text
|
||||||
.global _start
|
.global _start
|
||||||
_start:
|
_start:
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
;int fstat(int filedes, struct stat *buf);
|
;int fstat(int filedes, struct stat *buf);
|
||||||
;Integer arguments have to be zero extended.
|
;Integer arguments have to be zero extended.
|
||||||
|
|
||||||
#if defined(__H8300H__)
|
#include "setarch.h"
|
||||||
.h8300h
|
|
||||||
#endif
|
|
||||||
#if defined(__H8300S__)
|
|
||||||
.h8300s
|
|
||||||
#endif
|
|
||||||
|
|
||||||
.section .text
|
.section .text
|
||||||
.align 2
|
.align 2
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
;off_t lseek(int fildes, off_t offset, int whence);
|
;off_t lseek(int fildes, off_t offset, int whence);
|
||||||
;Integer arguments have to be zero extended.
|
;Integer arguments have to be zero extended.
|
||||||
|
|
||||||
#if defined(__H8300H__)
|
#include "setarch.h"
|
||||||
.h8300h
|
|
||||||
#endif
|
|
||||||
#if defined(__H8300S__)
|
|
||||||
.h8300s
|
|
||||||
#endif
|
|
||||||
|
|
||||||
.section .text
|
.section .text
|
||||||
.align 2
|
.align 2
|
||||||
|
@ -3,12 +3,7 @@
|
|||||||
;The second argument is taken from the stack,
|
;The second argument is taken from the stack,
|
||||||
;hence it is not zero extended here.
|
;hence it is not zero extended here.
|
||||||
|
|
||||||
#if defined(__H8300H__)
|
#include "setarch.h"
|
||||||
.h8300h
|
|
||||||
#endif
|
|
||||||
#if defined(__H8300S__)
|
|
||||||
.h8300s
|
|
||||||
#endif
|
|
||||||
|
|
||||||
.section .text
|
.section .text
|
||||||
.align 2
|
.align 2
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
;ssize_t read(int fd, void *buf, size_t count);
|
;ssize_t read(int fd, void *buf, size_t count);
|
||||||
;Integer arguments have to be zero extended.
|
;Integer arguments have to be zero extended.
|
||||||
|
|
||||||
#if defined(__H8300H__)
|
#include "setarch.h"
|
||||||
.h8300h
|
|
||||||
#endif
|
|
||||||
#if defined(__H8300S__)
|
|
||||||
.h8300s
|
|
||||||
#endif
|
|
||||||
|
|
||||||
.section .text
|
.section .text
|
||||||
.align 2
|
.align 2
|
||||||
|
14
newlib/libc/sys/h8300hms/setarch.h
Normal file
14
newlib/libc/sys/h8300hms/setarch.h
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#ifdef __H8300H__
|
||||||
|
#ifdef __NORMAL_MODE__
|
||||||
|
.h8300hn
|
||||||
|
#else
|
||||||
|
.h8300h
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
#ifdef __H8300S__
|
||||||
|
#ifdef __NORMAL_MODE__
|
||||||
|
.h8300sn
|
||||||
|
#else
|
||||||
|
.h8300s
|
||||||
|
#endif
|
||||||
|
#endif
|
@ -1,11 +1,6 @@
|
|||||||
;int stat(const char *file_name, struct stat *buf);
|
;int stat(const char *file_name, struct stat *buf);
|
||||||
|
|
||||||
#if defined(__H8300H__)
|
#include "setarch.h"
|
||||||
.h8300h
|
|
||||||
#endif
|
|
||||||
#if defined(__H8300S__)
|
|
||||||
.h8300s
|
|
||||||
#endif
|
|
||||||
|
|
||||||
.section .text
|
.section .text
|
||||||
.align 2
|
.align 2
|
||||||
|
@ -1,13 +1,7 @@
|
|||||||
;ssize_t write(int fd, const void *buf, size_t count);
|
;ssize_t write(int fd, const void *buf, size_t count);
|
||||||
;Integer arguments have to be zero extended.
|
;Integer arguments have to be zero extended.
|
||||||
|
|
||||||
#if defined(__H8300H__)
|
#include "setarch.h"
|
||||||
.h8300h
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__H8300S__)
|
|
||||||
.h8300s
|
|
||||||
#endif
|
|
||||||
|
|
||||||
.section .text
|
.section .text
|
||||||
.align 2
|
.align 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user