diff options
author | Matt Fleming <matt.fleming@intel.com> | 2012-11-12 14:15:23 +0000 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-11-12 14:35:54 +0000 |
commit | 1cf1c0c827008cb1af7b06dc1a7496072756c518 (patch) | |
tree | b0e77e5f0157c8d09463355e90de44c9ed3eb475 | |
parent | 69122c424d44ab10dd1dca198fd5ccb44d2be864 (diff) | |
download | syslinux-1cf1c0c827008cb1af7b06dc1a7496072756c518.tar.gz syslinux-1cf1c0c827008cb1af7b06dc1a7496072756c518.tar.xz syslinux-1cf1c0c827008cb1af7b06dc1a7496072756c518.zip |
efi: Pass correct pointer to BS->CreateEvent()
setup_default_timer() should be taking an EFI_EVENT * as its paramter,
since that's what CreateEvent() expects.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | efi/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -627,14 +627,14 @@ void timer_handler(EFI_EVENT ev, VOID *ctx) } /* Setup a default periodic timer */ -static EFI_STATUS setup_default_timer(EFI_EVENT ev) +static EFI_STATUS setup_default_timer(EFI_EVENT *ev) { EFI_STATUS efi_status; - ev = NULL; - efi_status = uefi_call_wrapper( BS->CreateEvent, 5, EVT_TIMER|EVT_NOTIFY_SIGNAL, TPL_NOTIFY, (EFI_EVENT_NOTIFY)timer_handler, NULL, &ev); + *ev = NULL; + efi_status = uefi_call_wrapper( BS->CreateEvent, 5, EVT_TIMER|EVT_NOTIFY_SIGNAL, TPL_NOTIFY, (EFI_EVENT_NOTIFY)timer_handler, NULL, ev); if (efi_status == EFI_SUCCESS) { - efi_status = uefi_call_wrapper(BS->SetTimer, 3, ev, TimerPeriodic, DEFAULT_TIMER_TICK_DURATION); + efi_status = uefi_call_wrapper(BS->SetTimer, 3, *ev, TimerPeriodic, DEFAULT_TIMER_TICK_DURATION); } return efi_status; } @@ -1099,7 +1099,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *table) goto out; } /* setup timer for boot menu system support */ - status = setup_default_timer(timer_ev); + status = setup_default_timer(&timer_ev); if (status != EFI_SUCCESS) { printf("Failed to set up EFI timer support, bailing out\n"); goto out; |