OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /or1k/trunk/newlib/libgloss/m32r
    from Rev 1765 to Rev 57
    Reverse comparison

Rev 1765 → Rev 57

/trapmon0.c File deleted
/unlink.c File deleted
/Makefile.in File deleted
/open.c File deleted
/sbrk.c File deleted
/lseek.c File deleted
/raise.c File deleted
/eva-stub.ld File deleted
/close.c File deleted
/trap0.S File deleted
/exit.c File deleted
/read.c File deleted
/stat.c File deleted
/getpid.c File deleted
/isatty.c File deleted
/fstat.c File deleted
/utime.c File deleted
/mon.specs File deleted
/eit.h File deleted
/m32r-lib.c File deleted
/crt0.S File deleted
/eva.ld File deleted
/chmod.c File deleted
/write.c File deleted
/kill.c File deleted
/configure File deleted
configure Property changes : Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: configure.in =================================================================== --- configure.in (revision 1765) +++ configure.in (nonexistent) @@ -1,51 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.5)dnl -AC_INIT(crt0.S) - -if test "${enable_shared}" = "yes" ; then - echo "Shared libraries not supported for cross compiling, ignored" -fi - -if test "$srcdir" = "." ; then - if test "${with_target_subdir}" != "." ; then - libgloss_topdir="${srcdir}/${with_multisrctop}../../.." - else - libgloss_topdir="${srcdir}/${with_multisrctop}../.." - fi -else - libgloss_topdir="${srcdir}/../.." -fi -AC_CONFIG_AUX_DIR($libgloss_topdir) - -AC_CANONICAL_SYSTEM -AC_ARG_PROGRAM - -AC_PROG_INSTALL - -AC_PROG_CC -AS=${AS-as} -AC_SUBST(AS) -AR=${AR-ar} -AC_SUBST(AR) -LD=${LD-ld} -AC_SUBST(LD) -AC_PROG_RANLIB - -host_makefile_frag=${srcdir}/../config/default.mh - -dnl We have to assign the same value to other variables because autoconf -dnl doesn't provide a mechanism to substitute a replacement keyword with -dnl arbitrary data or pathnames. -dnl -host_makefile_frag_path=$host_makefile_frag -AC_SUBST(host_makefile_frag_path) -AC_SUBST_FILE(host_makefile_frag) - -AC_OUTPUT(Makefile, -. ${libgloss_topdir}/config-ml.in, -srcdir=${srcdir} -target=${target} -ac_configure_args="${ac_configure_args} --enable-multilib" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -libgloss_topdir=${libgloss_topdir} -) Index: trap.S =================================================================== --- trap.S (revision 1765) +++ trap.S (nonexistent) @@ -1,9 +0,0 @@ - .text - .global __trap0 -__trap0: - trap 0 # trap 0 returns result in r2, error code in r3 - cmpui r3,1 # is error code zero? - bc .Lret # yes, skip setting errno - st r3,@r0 # no, set errno -.Lret: - jmp lr # return to caller Index: crtsysc.c =================================================================== --- crtsysc.c (revision 1765) +++ crtsysc.c (nonexistent) @@ -1,143 +0,0 @@ -#include <_ansi.h> -#include -#include -#include -#include "sys/syscall.h" - -int __trap0 (int function, int p1, int p2, int p3, struct _reent *r); - -#define TRAP0(f, p1, p2, p3) \ -__trap0 (f, (int) (p1), (int) (p2), (int) (p3), _REENT) - -asm (" - .text - .global __trap0 -__trap0: - trap #0 ; trap 0 returns result in r0, error code in r2 - cmpui r2,#1 ; is error code zero? - bc .Lret ; yes, skip setting errno - .fillinsn - ld r4,@(sp) ; no, set errno - st r2,@r4 -.Lret: - jmp lr ; return to caller - .fillinsn -"); - -int -_open (const char *path, int flags) -{ - return TRAP0 (SYS_open, path, flags, 0); -} - -int -_close (int file) -{ - return TRAP0 (SYS_close, file, 0, 0); -} - -int -_read (int file, char *ptr, int len) -{ - return TRAP0 (SYS_read, file, ptr, len); -} - -int -_lseek (int file, int ptr, int dir) -{ - return TRAP0 (SYS_lseek, file, ptr, dir); -} - -int -_write (int file, char *ptr, int len) -{ - return TRAP0 (SYS_write, file, ptr, len); -} - -caddr_t -_sbrk (int incr) -{ - /* `_end' is defined in the linker script. - We must handle it carefully as we don't want the compiler to think - it lives in the small data area. Use medium model to ensure 32 bit - addressability. */ - extern char _end __attribute__ ((__model__(__medium__))); - static char *heap_end; - char *prev_heap_end; - char *sp = (char *)&sp; - - if (heap_end == 0) - { - heap_end = &_end; - } - prev_heap_end = heap_end; - if (heap_end > sp) - { - _write (1, "Heap and stack collision\n", 25); - abort (); - } - heap_end += incr; - return (caddr_t) prev_heap_end; -} - -int -_fstat (int file, struct stat *st) -{ - st->st_mode = S_IFCHR; - return 0; -} - -int -_unlink () -{ - return -1; -} - -/* FIXME: can we not nuke the 10,000 copies of this function - and fudge things (which is all this function does) in _fstat? */ -int -isatty (int fd) -{ - return 1; -} - -void -_exit (n) -{ - TRAP0 (SYS_exit, n, 0, 0); -} - -_kill (n, m) -{ - return TRAP0 (SYS_exit, 0xdead, 0, 0); -} - -_getpid (n) -{ - return 1; -} - -_raise () -{ -} - -int -_stat (const char *path, struct stat *st) - -{ - return TRAP0 (SYS_stat, path, st, 0); -} - -int -_chmod (const char *path, short mode) -{ - return TRAP0 (SYS_chmod, path, mode, 0); -} - -int -_utime (path, times) - const char *path; - char *times; -{ - return TRAP0 (SYS_utime, path, times, 0); -} Index: sys/syscall.h =================================================================== --- sys/syscall.h (revision 1765) +++ sys/syscall.h (nonexistent) @@ -1,35 +0,0 @@ -#ifndef _SYS_SYSCALL_H_ -#define _SYS_SYSCALL_H_ - -/* Note: This file may be included by assembler source. */ - -/* There is no need for the following: - SYS_execv, SYS_creat, SYS_wait, etc. etc. - Don't add them. */ - -/* These are required by the ANSI C part of newlib - (excluding system() of course). */ -#define SYS_exit 1 -#define SYS_open 2 -#define SYS_close 3 -#define SYS_read 4 -#define SYS_write 5 -#define SYS_lseek 6 -#define SYS_unlink 7 -#define SYS_getpid 8 -#define SYS_kill 9 -#define SYS_fstat 10 -/*#define SYS_sbrk 11 - not currently a system call, but reserved. */ - -/* ARGV support. */ -#define SYS_argvlen 12 -#define SYS_argv 13 - -/* These are extras added for one reason or another. */ -#define SYS_chdir 20 -#define SYS_stat 21 -#define SYS_chmod 22 -#define SYS_utime 23 -#define SYS_time 24 - -#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.