diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2010-07-19 16:29:24 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-07-19 16:29:24 -0700 |
commit | f6d4a4415928ffca69eb0c498af777d74f4fc303 (patch) | |
tree | f7a7f7ae735f6b9bfdc6fb500362a0acc600ef63 /libinstaller | |
parent | db8899d1faa6fc6e3ea8b89684e5a623df9909ed (diff) | |
download | syslinux-f6d4a4415928ffca69eb0c498af777d74f4fc303.tar.gz |
dos: add memcpy_from_sl() and use it where appropriate
Add memcpy_from_sl() and use it to handle pointers into the payload
section.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'libinstaller')
-rw-r--r-- | libinstaller/syslxint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libinstaller/syslxint.h b/libinstaller/syslxint.h index b8e872a7..14a7fc2b 100644 --- a/libinstaller/syslxint.h +++ b/libinstaller/syslxint.h @@ -137,6 +137,7 @@ void set_16_sl(uint16_t * p, uint16_t v); void set_32_sl(uint32_t * p, uint32_t v); void set_64_sl(uint64_t * p, uint64_t v); void memcpy_to_sl(void *dst, const void *src, size_t len); +void memcpy_from_sl(void *dst, const void *src, size_t len); #else @@ -150,6 +151,7 @@ void memcpy_to_sl(void *dst, const void *src, size_t len); #define set_32_sl(x,y) set_32(x,y) #define set_64_sl(x,y) set_64(x,y) #define memcpy_to_sl(d,s,l) memcpy(d,s,l) +#define memcpy_from_sl(d,s,l) memcpy(d,s,l) #endif |