diff options
author | Michael Brown <mcb30@ipxe.org> | 2014-01-06 18:56:58 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2014-01-12 22:53:16 +0100 |
commit | fffd98bd37029e6ec7a541690510fa538c9d65f8 (patch) | |
tree | 4784b93c43fe81799c8ccf3bd4fb34ca2cd32531 /src/include/ipxe/efi | |
parent | 26f782bb41c5d4fce427e23aba3199c0fb4297d8 (diff) | |
download | ipxe-fffd98bd37029e6ec7a541690510fa538c9d65f8.zip ipxe-fffd98bd37029e6ec7a541690510fa538c9d65f8.tar.gz ipxe-fffd98bd37029e6ec7a541690510fa538c9d65f8.tar.bz2 |
[uaccess] Add memcmp_user()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
-rw-r--r-- | src/include/ipxe/efi/efi_uaccess.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/efi_uaccess.h b/src/include/ipxe/efi/efi_uaccess.h index 79c1897..870a089 100644 --- a/src/include/ipxe/efi/efi_uaccess.h +++ b/src/include/ipxe/efi/efi_uaccess.h @@ -76,6 +76,13 @@ UACCESS_INLINE ( efi, memmove_user ) ( userptr_t dest, off_t dest_off, trivial_memmove_user ( dest, dest_off, src, src_off, len ); } +static inline __always_inline int +UACCESS_INLINE ( efi, memcmp_user ) ( userptr_t first, off_t first_off, + userptr_t second, off_t second_off, + size_t len ) { + return trivial_memcmp_user ( first, first_off, second, second_off, len); +} + static inline __always_inline void UACCESS_INLINE ( efi, memset_user ) ( userptr_t buffer, off_t offset, int c, size_t len ) { |