Skip to content

Commit d4942f6

Browse files
Fearyncesschenx97
authored andcommitted
lib/mips64: drop all efi_call wrappers
1 parent 828d798 commit d4942f6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

grub-core/kern/mips64/efi/init.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ grub_machine_init (void)
5252
grub_efi_init ();
5353

5454
b = grub_efi_system_table->boot_services;
55-
efi_call_5 (b->create_event, GRUB_EFI_EVT_TIMER | GRUB_EFI_EVT_NOTIFY_SIGNAL,
55+
b->create_event(GRUB_EFI_EVT_TIMER | GRUB_EFI_EVT_NOTIFY_SIGNAL,
5656
GRUB_EFI_TPL_CALLBACK, grub_loongson_increment_timer, NULL, &tmr_evt);
57-
efi_call_3 (b->set_timer, tmr_evt, GRUB_EFI_TIMER_PERIODIC, 100000);
57+
b->set_timer(tmr_evt, GRUB_EFI_TIMER_PERIODIC, 100000);
5858

5959
grub_install_get_time_ms (grub_efi_get_time_ms);
6060

@@ -75,8 +75,8 @@ grub_machine_fini (int flags)
7575

7676
b = grub_efi_system_table->boot_services;
7777

78-
efi_call_3 (b->set_timer, tmr_evt, GRUB_EFI_TIMER_CANCEL, 0);
79-
efi_call_1 (b->close_event, tmr_evt);
78+
b->set_timer(tmr_evt, GRUB_EFI_TIMER_CANCEL, 0);
79+
b->close_event(tmr_evt);
8080

8181
if (grub_efi_is_loongson ())
8282
grub_efi_loongson_fini ();

grub-core/lib/mips64/efi/loongson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ grub_efi_loongson_alloc_boot_params (void)
354354
grub_free (mmap_buf);
355355

356356
b = grub_efi_system_table->boot_services;
357-
status = efi_call_4 (b->allocate_pages, type, GRUB_EFI_RUNTIME_SERVICES_DATA, pages, &address);
357+
status = b->allocate_pages (type, GRUB_EFI_RUNTIME_SERVICES_DATA, pages, &address);
358358
if (status != GRUB_EFI_SUCCESS)
359359
grub_fatal ("cannot allocate Loongson boot parameters!");
360360

0 commit comments

Comments
 (0)