On 16 March 2016 at 12:40, Laszlo Ersek <[email protected]> wrote:
> On 03/16/16 12:39, Laszlo Ersek wrote:
>> On 03/16/16 12:24, Ard Biesheuvel wrote:
>>> Change our resolution for the previously unused CpuExceptionHandlerLib
>>> from the null implementation to the newly added implementation specific
>>> to AARCH64 and ARM. This is needed since our CpuDxe will start using it
>>> in a subsequent patch.
>>>
>>> Contributed-under: TianoCore Contribution Agreement 1.0
>>> Signed-off-by: Ard Biesheuvel <[email protected]>
>>> ---
>>>  ArmVirtPkg/ArmVirt.dsc.inc | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc
>>> index 5938cb4ebfcb..db31b2dc4cfe 100644
>>> --- a/ArmVirtPkg/ArmVirt.dsc.inc
>>> +++ b/ArmVirtPkg/ArmVirt.dsc.inc
>>> @@ -83,7 +83,7 @@ [LibraryClasses.common]
>>>    # ARM Architectural Libraries
>>>    
>>> CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
>>>    
>>> DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
>>> -  
>>> CpuExceptionHandlerLib|MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf
>>> +  CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
>>>    
>>> ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
>>>    DmaLib|ArmPkg/Library/ArmDmaLib/ArmDmaLib.inf
>>>    ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
>>>
>>
>> Acked-by: Laszlo Ersek <[email protected]>
>>

Thanks

>> Can you pls summarize in a few words what the exception handlers will
>> do? For example, in OVMF's case, a register dump is written to the
>> serial port, and the image and the exception address into it are named too.
>
> I mean: it's enough to educate me on the list; this wasn't a suggestion
> to update the commit message.
>

This is just the plumbing to register and unregister exception
handlers. If an exception occurs for which no handler has been
registered, the DefaultExceptionHandler() implementation supplied by
DefaultExceptionHandlerLib is invoked. This aligns with how CpuDxe is
implemented currently, but moves it to a separate library.

-- 
Ard.
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to