summaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-07-24 11:59:11 (GMT)
committerAlexander Graf <agraf@suse.de>2017-07-24 12:38:21 (GMT)
commit3e094c592bc1dc19bb706379458f6be4e9500287 (patch)
treee9cea51382372bf9751663674e2ec5823415ab1b /include/efi_loader.h
parent3e433e960887a480f520d4b82ff8d3df3e037ffb (diff)
downloadu-boot-fsl-qoriq-3e094c592bc1dc19bb706379458f6be4e9500287.tar.xz
efi_loader: move guidcmp to header
Want to re-use this for file protocol, which I'm working on. Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 2abb6b8..7818e1c 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -168,6 +168,11 @@ static inline void ascii2unicode(u16 *unicode, const char *ascii)
*(unicode++) = *(ascii++);
}
+static inline int guidcmp(const efi_guid_t *g1, const efi_guid_t *g2)
+{
+ return memcmp(g1, g2, sizeof(efi_guid_t));
+}
+
/*
* Use these to indicate that your code / data should go into the EFI runtime
* section and thus still be available when the OS is running