mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
3e433e9608
commit
3e094c592b
2 changed files with 5 additions and 5 deletions
|
@ -168,6 +168,11 @@ static inline void ascii2unicode(u16 *unicode, const char *ascii)
|
||||||
*(unicode++) = *(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
|
* 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
|
* section and thus still be available when the OS is running
|
||||||
|
|
|
@ -132,11 +132,6 @@ static efi_status_t efi_unsupported(const char *funcname)
|
||||||
return EFI_EXIT(EFI_UNSUPPORTED);
|
return EFI_EXIT(EFI_UNSUPPORTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int guidcmp(const efi_guid_t *g1, const efi_guid_t *g2)
|
|
||||||
{
|
|
||||||
return memcmp(g1, g2, sizeof(efi_guid_t));
|
|
||||||
}
|
|
||||||
|
|
||||||
static unsigned long EFIAPI efi_raise_tpl(UINTN new_tpl)
|
static unsigned long EFIAPI efi_raise_tpl(UINTN new_tpl)
|
||||||
{
|
{
|
||||||
EFI_ENTRY("0x%zx", new_tpl);
|
EFI_ENTRY("0x%zx", new_tpl);
|
||||||
|
|
Loading…
Add table
Reference in a new issue