|
@@ -575,7 +575,7 @@ static EFI_DISK_IO_PROTOCOL efi_disk_io_protocol = {
|
575
|
575
|
* @v handle EFI handle
|
576
|
576
|
* @ret rc Return status code
|
577
|
577
|
*/
|
578
|
|
-int efi_file_install ( EFI_HANDLE *handle ) {
|
|
578
|
+int efi_file_install ( EFI_HANDLE handle ) {
|
579
|
579
|
EFI_BOOT_SERVICES *bs = efi_systab->BootServices;
|
580
|
580
|
union {
|
581
|
581
|
EFI_DISK_IO_PROTOCOL *diskio;
|
|
@@ -592,7 +592,7 @@ int efi_file_install ( EFI_HANDLE *handle ) {
|
592
|
592
|
* handle just to keep things looking normal.
|
593
|
593
|
*/
|
594
|
594
|
if ( ( efirc = bs->InstallMultipleProtocolInterfaces (
|
595
|
|
- handle,
|
|
595
|
+ &handle,
|
596
|
596
|
&efi_block_io_protocol_guid,
|
597
|
597
|
&efi_block_io_protocol,
|
598
|
598
|
&efi_disk_io_protocol_guid,
|
|
@@ -624,9 +624,9 @@ int efi_file_install ( EFI_HANDLE *handle ) {
|
624
|
624
|
* of calls to our DRIVER_STOP method when starting the EFI
|
625
|
625
|
* shell. I have no idea why this is.
|
626
|
626
|
*/
|
627
|
|
- if ( ( efirc = bs->OpenProtocol ( *handle, &efi_disk_io_protocol_guid,
|
|
627
|
+ if ( ( efirc = bs->OpenProtocol ( handle, &efi_disk_io_protocol_guid,
|
628
|
628
|
&diskio.interface, efi_image_handle,
|
629
|
|
- *handle,
|
|
629
|
+ handle,
|
630
|
630
|
EFI_OPEN_PROTOCOL_BY_DRIVER ) ) != 0){
|
631
|
631
|
rc = -EEFI ( efirc );
|
632
|
632
|
DBGC ( handle, "Could not open disk I/O protocol: %s\n",
|
|
@@ -637,11 +637,11 @@ int efi_file_install ( EFI_HANDLE *handle ) {
|
637
|
637
|
|
638
|
638
|
return 0;
|
639
|
639
|
|
640
|
|
- bs->CloseProtocol ( *handle, &efi_disk_io_protocol_guid,
|
641
|
|
- efi_image_handle, *handle );
|
|
640
|
+ bs->CloseProtocol ( handle, &efi_disk_io_protocol_guid,
|
|
641
|
+ efi_image_handle, handle );
|
642
|
642
|
err_open:
|
643
|
643
|
bs->UninstallMultipleProtocolInterfaces (
|
644
|
|
- *handle,
|
|
644
|
+ handle,
|
645
|
645
|
&efi_simple_file_system_protocol_guid,
|
646
|
646
|
&efi_simple_file_system_protocol,
|
647
|
647
|
&efi_disk_io_protocol_guid,
|