Browse Source

TARGET/MIPS_EJTAG: review scope of functions

Add "static" qualifier to private functions.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
tags/v0.5.0-rc1
Antonio Borneo 12 years ago
parent
commit
2ea78551ab
2 changed files with 4 additions and 4 deletions
  1. +4
    -3
      src/target/mips_ejtag.c
  2. +0
    -1
      src/target/mips_ejtag.h

+ 4
- 3
src/target/mips_ejtag.c View File

@@ -72,7 +72,7 @@ int mips_ejtag_get_idcode(struct mips_ejtag *ejtag_info, uint32_t *idcode)
return ERROR_OK;
}

int mips_ejtag_get_impcode(struct mips_ejtag *ejtag_info, uint32_t *impcode)
static int mips_ejtag_get_impcode(struct mips_ejtag *ejtag_info, uint32_t *impcode)
{
struct scan_field field;

@@ -154,7 +154,7 @@ int mips_ejtag_drscan_8(struct mips_ejtag *ejtag_info, uint32_t *data)
return ERROR_OK;
}

int mips_ejtag_step_enable(struct mips_ejtag *ejtag_info)
static int mips_ejtag_step_enable(struct mips_ejtag *ejtag_info)
{
static const uint32_t code[] = {
MIPS32_MTC0(1,31,0), /* move $1 to COP0 DeSave */
@@ -170,7 +170,8 @@ int mips_ejtag_step_enable(struct mips_ejtag *ejtag_info)

return ERROR_OK;
}
int mips_ejtag_step_disable(struct mips_ejtag *ejtag_info)

static int mips_ejtag_step_disable(struct mips_ejtag *ejtag_info)
{
static const uint32_t code[] = {
MIPS32_MTC0(15,31,0), /* move $15 to COP0 DeSave */


+ 0
- 1
src/target/mips_ejtag.h View File

@@ -134,7 +134,6 @@ int mips_ejtag_set_instr(struct mips_ejtag *ejtag_info,
int new_instr);
int mips_ejtag_enter_debug(struct mips_ejtag *ejtag_info);
int mips_ejtag_exit_debug(struct mips_ejtag *ejtag_info);
int mips_ejtag_get_impcode(struct mips_ejtag *ejtag_info, uint32_t *impcode);
int mips_ejtag_get_idcode(struct mips_ejtag *ejtag_info, uint32_t *idcode);
int mips_ejtag_drscan_32(struct mips_ejtag *ejtag_info, uint32_t *data);
int mips_ejtag_drscan_8(struct mips_ejtag *ejtag_info, uint32_t *data);


Loading…
Cancel
Save