mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-23 17:19:33 +08:00
* libgloss/m68k/Makefile.in (BDM_SYSOBJS): Remove bdm-inbyte.o.
Add bdm-time.o. * libgloss/m68k/bdm-close.c: Add copyright notice. * libgloss/m68k/bdm-fstat.c: Add copyright notice. * libgloss/m68k/bdm-gettimeofday.c: Add copyright notice. Fix &/| thinko. * libgloss/m68k/bdm-inbyte.c: Remove. * libgloss/m68k/bdm-isatty.c: Add copyright notice. * libgloss/m68k/bdm-lseek.c: Add copyright notice. * libgloss/m68k/bdm-open.c: Add copyright notice. * libgloss/m68k/bdm-read.c: Add copyright notice. * libgloss/m68k/bdm-rename.c: Add copyright notice. * libgloss/m68k/bdm-stat.c: Add copyright notice. * libgloss/m68k/bdm-system.c: Add copyright notice. * libgloss/m68k/bdm-time.c: New. * libgloss/m68k/bdm-unlink.c: Add copyright notice. * libgloss/m68k/bdm-write.c: Add copyright notice.
This commit is contained in:
parent
4321ca1749
commit
2cbb410deb
@ -1,3 +1,23 @@
|
||||
2006-06-05 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* libgloss/m68k/Makefile.in (BDM_SYSOBJS): Remove bdm-inbyte.o.
|
||||
Add bdm-time.o.
|
||||
* libgloss/m68k/bdm-close.c: Add copyright notice.
|
||||
* libgloss/m68k/bdm-fstat.c: Add copyright notice.
|
||||
* libgloss/m68k/bdm-gettimeofday.c: Add copyright notice. Fix &/|
|
||||
thinko.
|
||||
* libgloss/m68k/bdm-inbyte.c: Remove.
|
||||
* libgloss/m68k/bdm-isatty.c: Add copyright notice.
|
||||
* libgloss/m68k/bdm-lseek.c: Add copyright notice.
|
||||
* libgloss/m68k/bdm-open.c: Add copyright notice.
|
||||
* libgloss/m68k/bdm-read.c: Add copyright notice.
|
||||
* libgloss/m68k/bdm-rename.c: Add copyright notice.
|
||||
* libgloss/m68k/bdm-stat.c: Add copyright notice.
|
||||
* libgloss/m68k/bdm-system.c: Add copyright notice.
|
||||
* libgloss/m68k/bdm-time.c: New.
|
||||
* libgloss/m68k/bdm-unlink.c: Add copyright notice.
|
||||
* libgloss/m68k/bdm-write.c: Add copyright notice.
|
||||
|
||||
2006-05-31 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* libgloss/arm/elf-lm3s301.ld: New script.
|
||||
|
@ -131,9 +131,9 @@ BDM_OBJS= bdm-isv.o bdm-semihost.o $(BDM_SYSOBJS) \
|
||||
$(patsubst %,bdm-%.o,${BDM_ISRS})
|
||||
BDM_OTHER_OBJS= getpid.o kill.o sbrk.o print.o putnum.o
|
||||
BDM_SYSOBJS= bdm-close.o bdm-exit.o bdm-fstat.o bdm-gdb.o \
|
||||
bdm-gettimeofday.o bdm-inbyte.o bdm-isatty.o bdm-lseek.o \
|
||||
bdm-gettimeofday.o bdm-isatty.o bdm-lseek.o \
|
||||
bdm-open.o bdm-read.o bdm-rename.o \
|
||||
bdm-stat.o bdm-system.o bdm-unlink.o bdm-write.o
|
||||
bdm-stat.o bdm-system.o bdm-time.o bdm-unlink.o bdm-write.o
|
||||
BDM_ISRS= other_interrupt reset access_error address_error \
|
||||
illegal_instruction divide_by_zero privilege_violation \
|
||||
trace unimplemented_line_a_opcode unimplemented_line_f_opcode \
|
||||
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-close.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <unistd.h>
|
||||
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-fstat.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <sys/types.h>
|
||||
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-gettimeofday.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <sys/time.h>
|
||||
|
@ -1,24 +0,0 @@
|
||||
/*
|
||||
* bdm-inbyte.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
|
||||
/* Read a character from the input. This is currently unsupported.
|
||||
*/
|
||||
|
||||
int inbyte (void)
|
||||
{
|
||||
return -1;
|
||||
}
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-isatty.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <unistd.h>
|
||||
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-lseek.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <sys/types.h>
|
||||
@ -26,5 +42,5 @@ off_t lseek (int fd, off_t offset, int whence)
|
||||
parameters[3] = convert_to_gdb_lseek_flags (whence);
|
||||
BDM_TRAP (BDM_LSEEK, (uint32_t)parameters);
|
||||
errno = convert_from_gdb_errno (parameters[2]);
|
||||
return ((uint64_t)parameters[0] << 32) & ((uint64_t)parameters[1]);
|
||||
return ((uint64_t)parameters[0] << 32) | ((uint64_t)parameters[1]);
|
||||
}
|
||||
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-open.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <sys/types.h>
|
||||
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-read.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <unistd.h>
|
||||
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-rename.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <stdio.h>
|
||||
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-stat.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <string.h>
|
||||
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-system.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <stdlib.h>
|
||||
|
21
libgloss/m68k/bdm-time.c
Normal file
21
libgloss/m68k/bdm-time.c
Normal file
@ -0,0 +1,21 @@
|
||||
#include <sys/time.h>
|
||||
|
||||
/*
|
||||
* time -- get the current time
|
||||
* input parameters:
|
||||
* 0 : timeval ptr
|
||||
* output parameters:
|
||||
* 0 : result
|
||||
* 1 : errno
|
||||
*/
|
||||
|
||||
time_t time (time_t *t)
|
||||
{
|
||||
struct timeval tv;
|
||||
|
||||
if (gettimeofday (&tv, NULL))
|
||||
return -1;
|
||||
if (t)
|
||||
*t = tv.tv_sec;
|
||||
return tv.tv_sec;
|
||||
}
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-unlink.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <stdio.h>
|
||||
|
@ -1,3 +1,19 @@
|
||||
/*
|
||||
* bdm-write.c --
|
||||
*
|
||||
* Copyright (c) 2006 CodeSourcery Inc
|
||||
*
|
||||
* The authors hereby grant permission to use, copy, modify, distribute,
|
||||
* and license this software and its documentation for any purpose, provided
|
||||
* that existing copyright notices are retained in all copies and that this
|
||||
* notice is included verbatim in any distributions. No written agreement,
|
||||
* license, or royalty fee is required for any of the authorized uses.
|
||||
* Modifications to this software may be copyrighted by their authors
|
||||
* and need not follow the licensing terms described here, provided that
|
||||
* the new terms are clearly indicated on the first page of each file where
|
||||
* they apply.
|
||||
*/
|
||||
|
||||
#include "bdm-semihost.h"
|
||||
#include "bdm-gdb.h"
|
||||
#include <unistd.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user