diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2006-09-18 11:41:02 +0400 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2006-09-18 11:41:02 +0400 |
commit | cf7c22b5d8b97b12e0b2322ad979fbdf7e7425a7 (patch) | |
tree | 631415d5a6d716ce5779ab233c750393627faa73 /libgloss/m68k/bdm-semihost.h | |
parent | 5f87f7b44d1fd4819577a6fe2beec305990d09d9 (diff) |
libgloss/
* m68k/Makefile.in (bdm-semihost.o): Build from bdm-semihost.S.
* m68k/bdm-semihost.c: Remove.
* m68k/bdm-semihost.S: New.
* m68k/bdm-crt0.S: Don't install semihosting trap handler.
* m68k/bdm-close.c, bdm-exit.c, bdm-fstat.c, bdm-gettimeofday.c,
bdm-isatty.c, bdm-lseek.c, bdm-open.c, bdm-read.c, bdm-rename.c,
bdm-stat.c, bdm-system.c, bdm-unlink.c, bdm-write.c): Update.
* m68k/bdm-isrs.c: Update comment.
* m68k/bdm-semihost.h (BDM_TRAPNUM, BDM_FUNC_REG, BDM_ARG_REG,
BDM_TRAP): Remove.
(__bdm_semihost): Declare.
Diffstat (limited to 'libgloss/m68k/bdm-semihost.h')
-rw-r--r-- | libgloss/m68k/bdm-semihost.h | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/libgloss/m68k/bdm-semihost.h b/libgloss/m68k/bdm-semihost.h index 4d6e2b9cc..d82027557 100644 --- a/libgloss/m68k/bdm-semihost.h +++ b/libgloss/m68k/bdm-semihost.h @@ -14,21 +14,6 @@ * they apply. */ -/* Semihosting uses a user trap handler containing a HALT - instruction. This wakes the debugger to perform some action. */ - -/* This is the semihosting trap hander */ -#define BDM_TRAPNUM 15 - -/* This register holds the function enumeration for a semihosting - command. */ -#define BDM_FUNC_REG "d0" - -/* This register holds the argument for the semihosting call. For most - functions, this is a pointer to a block of memory that holds the input - and output parameters for the remote file i/o operation. */ -#define BDM_ARG_REG "d1" - /* Codes for BDM_FUNC_REG. */ #define BDM_EXIT 0 @@ -46,12 +31,4 @@ #define BDM_ISATTY 12 #define BDM_SYSTEM 13 -/* Here is the macro that generates the trap. */ - -#define BDM_TRAP(func, arg) \ - __asm__ __volatile__ ("move.l %0,%/" BDM_ARG_REG "\n" \ - "moveq %1,%/" BDM_FUNC_REG "\n" \ - "trap %2" \ - :: "rmi" (arg), "n" (func), "n" (BDM_TRAPNUM) \ - : BDM_FUNC_REG,BDM_ARG_REG,"memory") - +extern int __bdm_semihost (int func, void *args); |