Add handle_protocol and set_mem to boot_services

This commit is contained in:
Justin C. Miller
2020-02-23 19:27:32 -08:00
parent 7f9b04ecea
commit f5f5111471

View File

@@ -15,8 +15,10 @@ namespace uefi {
namespace bs_impl { namespace bs_impl {
using allocate_pages = status (*)(allocate_type, memory_type, uint64_t, uintptr_t*); using allocate_pages = status (*)(allocate_type, memory_type, uint64_t, uintptr_t*);
using allocate_pool = status (*)(memory_type, uint64_t, void**); using allocate_pool = status (*)(memory_type, uint64_t, void**);
using handle_protocol = status (*)(handle, guid *, void **);
using create_event = status (*)(evt, tpl, event_notify, void*, event*); using create_event = status (*)(evt, tpl, event_notify, void*, event*);
using locate_protocol = status (*)(const guid *, void *, void **); using locate_protocol = status (*)(const guid *, void *, void **);
using set_mem = void (*)(void *, uint64_t, uint8_t);
} }
struct boot_services { struct boot_services {
@@ -47,7 +49,7 @@ struct boot_services {
void *install_protocol_interface; void *install_protocol_interface;
void *reinstall_protocol_interface; void *reinstall_protocol_interface;
void *uninstall_protocol_interface; void *uninstall_protocol_interface;
void *handle_protocol; bs_impl::handle_protocol handle_protocol;
void *_reserved; void *_reserved;
void *register_protocol_notify; void *register_protocol_notify;
void *locate_handle; void *locate_handle;
@@ -87,7 +89,7 @@ struct boot_services {
// Miscellaneous Services // Miscellaneous Services
void *copy_mem; void *copy_mem;
void *set_mem; bs_impl::set_mem set_mem;
void *create_event_ex; void *create_event_ex;
}; };