It is used, I get the message printed from DumpCpuContent() in ArchExceptionHandler.c, that starts with "!!!! X64 Exception Type - ... CPU Apic ID - ... !!!!...".
On Mon, Dec 21, 2015 at 5:09 AM, Fan, Jeff <[email protected]> wrote: > Could you post the exception message from serial port? Then we could know > if UefiCpuPkg/Library/CpuExceptionHandlerLib is used or not? > > Jeff > > -----Original Message----- > From: edk2-devel [mailto:[email protected]] On Behalf Of > Sergey Tretiyak > Sent: Sunday, December 20, 2015 6:05 PM > To: [email protected] > Subject: [edk2] Registering custom exception/interrupt handler function. > > Hi to all. > I'm trying to write some EDK shell app for the latest Intel Skylake CPU, > and I need to use a custom GP exception handler during its work. > I'm trying to locate the EFI_CPU_ARCH_PROTOCOL by using > gEfiCpuArchProtocolGuid, then I'm using the RegisterInterruptHandler > protocol function (first with NULL to unregister the existing handler, and > then with pointer to my handler function), and it returns me EFI_SUCCESS in > both calls. But when I actually get a GP, it doesn't reach my custom > handler function, and probably continues to use some kind of default > exception handler that prints a default exception message on my serial port. > What I am doing wrong? Perhaps I'm compiling my app with a wrong library? > Which library should be used for EFI_CPU_ARCH_PROTOCOL to work correctly > as expected? > _______________________________________________ > edk2-devel mailing list > [email protected] > https://lists.01.org/mailman/listinfo/edk2-devel > _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

