efi/libstub: Expose LocateDevicePath boot service
We will be adding support for loading the initrd from a GUIDed device path in a subsequent patch, so update the prototype of the LocateDevicePath() boot service to make it callable from our code. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
@@ -283,6 +283,9 @@ static inline void *efi64_zero_upper(void *p)
|
||||
#define __efi64_argmap_locate_protocol(protocol, reg, interface) \
|
||||
((protocol), (reg), efi64_zero_upper(interface))
|
||||
|
||||
#define __efi64_argmap_locate_device_path(protocol, path, handle) \
|
||||
((protocol), (path), efi64_zero_upper(handle))
|
||||
|
||||
/* PCI I/O */
|
||||
#define __efi64_argmap_get_location(protocol, seg, bus, dev, func) \
|
||||
((protocol), efi64_zero_upper(seg), efi64_zero_upper(bus), \
|
||||
|
Reference in New Issue
Block a user