X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnand%2Farm_io.c;h=7c7148e6be1ba317fb6298bc84fec77315e210c8;hb=dcca0b7694d23dbee6f1554dfbc4bffc4bedb4f2;hp=cc565dcbc023592214c2f61d7d686878e4012157;hpb=da3bcb392e852214b0dda878f6161c8f1e8d15f3;p=openocd.git diff --git a/src/flash/nand/arm_io.c b/src/flash/nand/arm_io.c index cc565dcbc0..7c7148e6be 100644 --- a/src/flash/nand/arm_io.c +++ b/src/flash/nand/arm_io.c @@ -24,10 +24,13 @@ #include "config.h" #endif +#include "core.h" #include "arm_io.h" -#include +#include +#include #include + /** * Copies code to a working area. This will allocate room for the code plus the * additional amount requested if the working area pointer is null. @@ -40,7 +43,7 @@ * @param area Pointer to a pointer to a working area to copy code to * @return Success or failure of the operation */ -int arm_code_to_working_area(struct target *target, +static int arm_code_to_working_area(struct target *target, const uint32_t *code, unsigned code_size, unsigned additional, struct working_area **area) {