From f05b2ac0bc4626e854afc6e6a5d1b88071adbd7c Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 21 Apr 2004 16:01:48 +0000 Subject: Remove duplicate white lines. --- c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h | 8 -------- c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c | 11 ----------- c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c | 1 - c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h | 3 --- 4 files changed, 23 deletions(-) (limited to 'c/src/lib/libbsp/m68k/shared') diff --git a/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h b/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h index 5dbb72185c..35afa770cd 100644 --- a/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h +++ b/c/src/lib/libbsp/m68k/shared/gdbstub/gdb_if.h @@ -32,7 +32,6 @@ struct rtems_gdb_stub_thread_info { int parse_zbreak(const char *in, int *type, unsigned char **addr, int *len); - char* mem2hstr(char *buf, const unsigned char *mem, int count); int hstr2mem(unsigned char *mem, const char *buf, int count); void set_mem_err(void); @@ -171,14 +170,9 @@ enum regnames {D0,D1,D2,D3,D4,D5,D6,D7, #define NUM_REGS 72 - - - - void mips_gdb_stub_install(int enableThreads) ; #endif /* defined (__mips__) */ - #define MEMOPT_READABLE 1 #define MEMOPT_WRITEABLE 2 @@ -186,6 +180,4 @@ void mips_gdb_stub_install(int enableThreads) ; int gdbstub_add_memsegment(unsigned,unsigned,int); - - #endif /* _GDB_IF_H */ diff --git a/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c b/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c index 4ad7482f27..3ca47623a8 100644 --- a/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c +++ b/c/src/lib/libbsp/m68k/shared/gdbstub/m68k-stub.c @@ -129,11 +129,9 @@ int current_thread_registers[NUMREGBYTES/4]; typedef void (*ExceptionHook)(int); /* pointer to function with int parm */ typedef void (*Function)(); /* pointer to a function */ - extern void putDebugChar(); /* write a single character */ extern int getDebugChar(); /* read and return a single char */ - /************************/ /* FORWARD DECLARATIONS */ /************************/ @@ -154,7 +152,6 @@ const char gdb_hexchars[]="0123456789abcdef"; #define highhex(x) gdb_hexchars [(x >> 4) & 0xf] #define lowhex(x) gdb_hexchars [x & 0xf] - /* We keep a whole frame cache here. "Why?", I hear you cry, "doesn't GDB handle that sort of thing?" Well, yes, I believe the only @@ -206,7 +203,6 @@ static ExceptionHook oldExceptionHook; */ const short exceptionSize[] = { 4,4,6,6,4,4,4,30,29,10,16,46,12,4,4,4 }; - /************* jump buffer used for setjmp/longjmp **************************/ jmp_buf remcomEnv; @@ -322,7 +318,6 @@ asm(" lea 4(%sp),%sp"); /* pull off 68000 return address */ #endif asm(" rte"); - #if M68K_HAS_VBR /* This function is called when a 68020 exception occurs. It saves * all the cpu and fpcp regs in the _registers array, creates a frame on a @@ -493,7 +488,6 @@ saveDone: \n\ "); #endif - /* * remcomHandler is a front end for handle_exception. It moves the * stack pointer into an area reserved for debugger use in case the @@ -553,7 +547,6 @@ char ch; return (-1); } - /* scan for the sequence $# */ void getpacket(buffer) char * buffer; @@ -610,7 +603,6 @@ char * buffer; /* send the packet in buffer. The host get's one chance to read it. This routine does not wait for a positive acknowledge. */ - /* * Send the packet in buffer and wait for a positive acknowledgement. */ @@ -664,7 +656,6 @@ char remcomInBuffer[BUFMAX]; char remcomOutBuffer[BUFMAX]; static short error; - void debug_error( char * format, char * parm @@ -954,7 +945,6 @@ void handle_exception(int exceptionVector) mem2hex (regptr, remcomOutBuffer, sizeof registers); break; - case 'G': /* set the values of the CPU registers - return OK */ regptr = registers; #if defined(GDB_STUB_ENABLE_THREAD_SUPPORT) @@ -1243,7 +1233,6 @@ void handle_exception(int exceptionVector) } } - void initializeRemcomErrorFrame() { diff --git a/c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c b/c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c index 4cc1584087..55d12334d7 100644 --- a/c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c +++ b/c/src/lib/libbsp/m68k/shared/m68kpretaskinghook.c @@ -38,7 +38,6 @@ extern void *_RamBase; extern void *_WorkspaceBase; extern void *_HeapSize; - unsigned long _M68k_Ramsize; void bsp_pretasking_hook(void) diff --git a/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h b/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h index 967faa8d24..8cbcb440d1 100644 --- a/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h +++ b/c/src/lib/libbsp/m68k/shared/mvme/mvme16x_hw.h @@ -55,7 +55,6 @@ int uti596_attach(struct rtems_bsdnet_ifconfig * pConfig, int attaching ); */ #define GROUP_BASE_ADDRESS 0x0000CC00 - /* * Representation of the VMEchip2 LCSR. * Could be made more detailed. @@ -244,7 +243,6 @@ typedef volatile struct nvram_config_ { #endif - /* * Flag to indicate if J1-4 is on (and parameters should be * sought in User Area NVRAM) @@ -257,7 +255,6 @@ typedef volatile struct nvram_config_ { #define NVRAM_CONFIGURE 0 #endif - #ifdef __cplusplus } #endif -- cgit v1.2.3