scratch_reserve() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

scratch_reserve() function

Find some scratch memory to be used with the given program.

Syntax

static int scratch_reserve(struct target *target,     scratch_mem_t *scratch,     struct riscv_program *program,     unsigned size_bytes);

Arguments

target

scratch

program

size_bytes

References

LocationReferrerText
riscv-013.c:1134
static int scratch_reserve(struct target *target,
riscv-013.c:1329register_write_direct()
if (scratch_reserve(target, &scratch, &program, 8) != ERROR_OK)
riscv-013.c:1443register_read_direct()
if (scratch_reserve(target, &scratch, &program, 8) != ERROR_OK)