diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2006-06-05 18:22:26 +0400 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2006-06-05 18:22:26 +0400 |
commit | 2cbb410debb42ca3fd29fe208522f0124d48c42c (patch) | |
tree | b3238a96beb56c8ece747bcd81bfc65e97eb46fd | |
parent | 4321ca17494790961ec12a82c9c6524f778c1317 (diff) |
* 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.
-rw-r--r-- | ChangeLog.csl | 20 | ||||
-rw-r--r-- | libgloss/m68k/Makefile.in | 4 | ||||
-rw-r--r-- | libgloss/m68k/bdm-close.c | 16 | ||||
-rw-r--r-- | libgloss/m68k/bdm-fstat.c | 16 | ||||
-rw-r--r-- | libgloss/m68k/bdm-gettimeofday.c | 16 | ||||
-rw-r--r-- | libgloss/m68k/bdm-inbyte.c | 24 | ||||
-rw-r--r-- | libgloss/m68k/bdm-isatty.c | 16 | ||||
-rw-r--r-- | libgloss/m68k/bdm-lseek.c | 18 | ||||
-rw-r--r-- | libgloss/m68k/bdm-open.c | 16 | ||||
-rw-r--r-- | libgloss/m68k/bdm-read.c | 16 | ||||
-rw-r--r-- | libgloss/m68k/bdm-rename.c | 16 | ||||
-rw-r--r-- | libgloss/m68k/bdm-stat.c | 16 | ||||
-rw-r--r-- | libgloss/m68k/bdm-system.c | 16 | ||||
-rw-r--r-- | libgloss/m68k/bdm-time.c | 21 | ||||
-rw-r--r-- | libgloss/m68k/bdm-unlink.c | 16 | ||||
-rw-r--r-- | libgloss/m68k/bdm-write.c | 16 |
16 files changed, 236 insertions, 27 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl index d3a730f7b..8baac1ce7 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -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. diff --git a/libgloss/m68k/Makefile.in b/libgloss/m68k/Makefile.in index f64ee81bd..a5e561164 100644 --- a/libgloss/m68k/Makefile.in +++ b/libgloss/m68k/Makefile.in @@ -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 \ diff --git a/libgloss/m68k/bdm-close.c b/libgloss/m68k/bdm-close.c index 25ed55076..40ddf9f5e 100644 --- a/libgloss/m68k/bdm-close.c +++ b/libgloss/m68k/bdm-close.c @@ -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> diff --git a/libgloss/m68k/bdm-fstat.c b/libgloss/m68k/bdm-fstat.c index 63a60939b..f93f854f6 100644 --- a/libgloss/m68k/bdm-fstat.c +++ b/libgloss/m68k/bdm-fstat.c @@ -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> diff --git a/libgloss/m68k/bdm-gettimeofday.c b/libgloss/m68k/bdm-gettimeofday.c index f06020b38..154954244 100644 --- a/libgloss/m68k/bdm-gettimeofday.c +++ b/libgloss/m68k/bdm-gettimeofday.c @@ -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> diff --git a/libgloss/m68k/bdm-inbyte.c b/libgloss/m68k/bdm-inbyte.c deleted file mode 100644 index 636c35224..000000000 --- a/libgloss/m68k/bdm-inbyte.c +++ /dev/null @@ -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; -} diff --git a/libgloss/m68k/bdm-isatty.c b/libgloss/m68k/bdm-isatty.c index 0c4dadc0d..1da79bc15 100644 --- a/libgloss/m68k/bdm-isatty.c +++ b/libgloss/m68k/bdm-isatty.c @@ -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> diff --git a/libgloss/m68k/bdm-lseek.c b/libgloss/m68k/bdm-lseek.c index f25b6384c..b8308cbff 100644 --- a/libgloss/m68k/bdm-lseek.c +++ b/libgloss/m68k/bdm-lseek.c @@ -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]); } diff --git a/libgloss/m68k/bdm-open.c b/libgloss/m68k/bdm-open.c index ee7f191ad..878cff84d 100644 --- a/libgloss/m68k/bdm-open.c +++ b/libgloss/m68k/bdm-open.c @@ -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> diff --git a/libgloss/m68k/bdm-read.c b/libgloss/m68k/bdm-read.c index bc87c65fa..441a7d249 100644 --- a/libgloss/m68k/bdm-read.c +++ b/libgloss/m68k/bdm-read.c @@ -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> diff --git a/libgloss/m68k/bdm-rename.c b/libgloss/m68k/bdm-rename.c index 01a730942..3e0acf3bb 100644 --- a/libgloss/m68k/bdm-rename.c +++ b/libgloss/m68k/bdm-rename.c @@ -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> diff --git a/libgloss/m68k/bdm-stat.c b/libgloss/m68k/bdm-stat.c index 890dfad03..536aeec5d 100644 --- a/libgloss/m68k/bdm-stat.c +++ b/libgloss/m68k/bdm-stat.c @@ -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> diff --git a/libgloss/m68k/bdm-system.c b/libgloss/m68k/bdm-system.c index cc472cd52..3514f2620 100644 --- a/libgloss/m68k/bdm-system.c +++ b/libgloss/m68k/bdm-system.c @@ -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> diff --git a/libgloss/m68k/bdm-time.c b/libgloss/m68k/bdm-time.c new file mode 100644 index 000000000..02fbfabbe --- /dev/null +++ b/libgloss/m68k/bdm-time.c @@ -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; +} diff --git a/libgloss/m68k/bdm-unlink.c b/libgloss/m68k/bdm-unlink.c index 75e5da78f..05098ae7a 100644 --- a/libgloss/m68k/bdm-unlink.c +++ b/libgloss/m68k/bdm-unlink.c @@ -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> diff --git a/libgloss/m68k/bdm-write.c b/libgloss/m68k/bdm-write.c index d1c390e26..0280dcd7c 100644 --- a/libgloss/m68k/bdm-write.c +++ b/libgloss/m68k/bdm-write.c @@ -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> |