Hi,

I'm trying to write an EFI application[1] to sample the program
counter, using a timer. I want to grab the EFI_SYSTEM_CONTEXT (for
sampling) on timer interrupts. However:

1) Regular event-based SetTimer does not pass me this information
2) EFI timer architectural protocols also do not seem to pass this.
EFI_TIMER_ARCH_PROTOCOL.RegisterHandler() takes a VOID
(EFIAPI *EFI_TIMER_NOTIFY) (
  IN UINT64  Time
  );

AKA not good.

Am I missing something? Is the only option to register my own
interrupt handler using EFI_CPU_ARCH_PROTOCOL, while using another
timer and praying that the firmware isn't using it itself?

[1] I would really prefer to keep it an EFI application, even while
using DXE protocols, as I'd like for this to be usable without needing
to rebuild firmware

-- 
Pedro


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#111991): https://edk2.groups.io/g/devel/message/111991
Mute This Topic: https://groups.io/mt/102928314/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to