From 9d72b4ea9c7d9cac386f70d8a6581d4b1a45d7b0 Mon Sep 17 00:00:00 2001 From: James Morrissey Date: Mon, 10 Feb 2014 17:04:32 +0000 Subject: Implement load_image in terms of IO abstraction The modified implementation uses the IO abstraction rather than making direct semi-hosting calls. The semi-hosting driver is now registered for the FVP platform during initialisation of each boot stage where it is used. Additionally, the FVP platform includes a straightforward implementation of 'plat_get_image_source' which provides a generic means for the 'load_image' function to determine how to access the image data. Change-Id: Ia34457b471dbee990c7b3c79de7aee4ceea51aa6 --- include/semihosting.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/semihosting.h') diff --git a/include/semihosting.h b/include/semihosting.h index d70fcbaa..0244cade 100644 --- a/include/semihosting.h +++ b/include/semihosting.h @@ -61,7 +61,7 @@ int semihosting_connection_supported(void); int semihosting_file_open(const char *file_name, unsigned int mode); int semihosting_file_seek(int file_handle, unsigned int offset); int semihosting_file_read(int file_handle, int *length, void *buffer); -int semihosting_file_write(int file_handle, int *length, void *buffer); +int semihosting_file_write(int file_handle, int *length, const void *buffer); int semihosting_file_close(int file_handle); int semihosting_file_length(int file_handle); int semihosting_system(char *command_line); -- cgit v1.2.3