Sorry. I missed this mail last week.

Are you sure the exception message included the following message?
" (ImageBase=%016lx, EntryPoint=%016lx) !!!!\n",

Or could you post the whole exception message not only the first line?

Jeff

From: Sergey Tretiyak [mailto:sergey.treti...@gmail.com]
Sent: Monday, December 21, 2015 8:06 PM
To: Fan, Jeff
Cc: edk2-devel@lists.01.org
Subject: Re: [edk2] Registering custom exception/interrupt handler function.

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 
<jeff....@intel.com<mailto:jeff....@intel.com>> 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:edk2-devel-boun...@lists.01.org<mailto:edk2-devel-boun...@lists.01.org>]
 On Behalf Of Sergey Tretiyak
Sent: Sunday, December 20, 2015 6:05 PM
To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
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
edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
https://lists.01.org/mailman/listinfo/edk2-devel

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to