Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d5e3594 authored by Sonic Zhang's avatar Sonic Zhang Committed by Mike Frysinger
Browse files

Blackfin: kgdb: punt dead code



None of these vars/funcs were being used.

Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent e34132f4
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -10,9 +10,6 @@


#include <linux/ptrace.h>
#include <linux/ptrace.h>


/* gdb locks */
#define KGDB_MAX_NO_CPUS 8

/*
/*
 * BUFMAX defines the maximum number of characters in inbound/outbound buffers.
 * BUFMAX defines the maximum number of characters in inbound/outbound buffers.
 * At least NUMREGBYTES*2 are needed for register packets.
 * At least NUMREGBYTES*2 are needed for register packets.
+0 −17
Original line number Original line Diff line number Diff line
@@ -24,16 +24,6 @@
#include <asm/blackfin.h>
#include <asm/blackfin.h>
#include <asm/dma.h>
#include <asm/dma.h>


/* Put the error code here just in case the user cares.  */
int gdb_bfin_errcode;
/* Likewise, the vector number here (since GDB only gets the signal
   number through the usual means, and that's not very specific).  */
int gdb_bfin_vector = -1;

#if KGDB_MAX_NO_CPUS != 8
#error change the definition of slavecpulocks
#endif

void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs)
void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs)
{
{
	gdb_regs[BFIN_R0] = regs->r0;
	gdb_regs[BFIN_R0] = regs->r0;
@@ -369,13 +359,6 @@ void kgdb_roundup_cpu(int cpu, unsigned long flags)
}
}
#endif
#endif


void kgdb_post_primary_code(struct pt_regs *regs, int eVector, int err_code)
{
	/* Master processor is completely in the debugger */
	gdb_bfin_vector = eVector;
	gdb_bfin_errcode = err_code;
}

int kgdb_arch_handle_exception(int vector, int signo,
int kgdb_arch_handle_exception(int vector, int signo,
			       int err_code, char *remcom_in_buffer,
			       int err_code, char *remcom_in_buffer,
			       char *remcom_out_buffer,
			       char *remcom_out_buffer,