diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2006-05-24 11:54:51 +0400 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2006-05-24 11:54:51 +0400 |
commit | 0fecf1109c985fd7fc855d8d671d070866b7cc92 (patch) | |
tree | 8f6cee7685c39dd08a163945124703e58a1a67c3 /libgloss | |
parent | 22bd8d8dc63cefd1c8c59f197b21f111e020e133 (diff) |
* libgloss/m68k/Makefile.in (BDM_SYSOBJS): Remove bdm-outbyte.o
* libgloss/m68k/bdm-outbyte.c: Delete.
* libgloss/m68k/bdm-semihost.h (BDM_OUTBYTE): Mark as obsolete.
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/m68k/Makefile.in | 2 | ||||
-rw-r--r-- | libgloss/m68k/bdm-outbyte.c | 27 | ||||
-rw-r--r-- | libgloss/m68k/bdm-semihost.h | 3 |
3 files changed, 2 insertions, 30 deletions
diff --git a/libgloss/m68k/Makefile.in b/libgloss/m68k/Makefile.in index 59c192619..4c3513391 100644 --- a/libgloss/m68k/Makefile.in +++ b/libgloss/m68k/Makefile.in @@ -132,7 +132,7 @@ BDM_OBJS= bdm-isv.o bdm-semihost.o $(BDM_SYSOBJS) \ 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-open.o bdm-outbyte.o bdm-read.o bdm-rename.o \ + bdm-open.o bdm-read.o bdm-rename.o \ bdm-stat.o bdm-system.o bdm-unlink.o bdm-write.o BDM_ISRS= other_interrupt reset access_error address_error \ illegal_instruction divide_by_zero privilege_violation \ diff --git a/libgloss/m68k/bdm-outbyte.c b/libgloss/m68k/bdm-outbyte.c deleted file mode 100644 index 536c77717..000000000 --- a/libgloss/m68k/bdm-outbyte.c +++ /dev/null @@ -1,27 +0,0 @@ -/* - * bdm-outbyte.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" - -/* - * outbyte -- output a byte to a console. - */ - -void outbyte (char c) -{ - int code = c & 0xff; - BDM_TRAP (BDM_OUTBYTE, code); -} diff --git a/libgloss/m68k/bdm-semihost.h b/libgloss/m68k/bdm-semihost.h index 43f4dcfe0..4d6e2b9cc 100644 --- a/libgloss/m68k/bdm-semihost.h +++ b/libgloss/m68k/bdm-semihost.h @@ -32,7 +32,7 @@ /* Codes for BDM_FUNC_REG. */ #define BDM_EXIT 0 -#define BDM_OUTBYTE 1 +#define BDM_PUTCHAR 1 /* Obsolete */ #define BDM_OPEN 2 #define BDM_CLOSE 3 #define BDM_READ 4 @@ -46,7 +46,6 @@ #define BDM_ISATTY 12 #define BDM_SYSTEM 13 - /* Here is the macro that generates the trap. */ #define BDM_TRAP(func, arg) \ |