Last change
on this file since 100307 was 99464, checked in by vboxsync, 21 months ago |
Devices/EFI/Firmware: Restore ArmPkg, ArmVirtPkg, ArmPlatformPkg in order to be able to build Aarch64 and Aarch32 firmware images for the virt platform, bugref:10400
|
-
Property svn:eol-style
set to
native
|
File size:
776 bytes
|
Line | |
---|
1 | /** @file
|
---|
2 |
|
---|
3 | Copyright (c) 2017, Linaro, Ltd. All rights reserved.<BR>
|
---|
4 |
|
---|
5 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
6 |
|
---|
7 | **/
|
---|
8 |
|
---|
9 | #include <PiDxe.h>
|
---|
10 | #include <Library/DebugLib.h>
|
---|
11 | #include <Library/DefaultExceptionHandlerLib.h>
|
---|
12 | #include <Library/UefiBootServicesTableLib.h>
|
---|
13 | #include <Protocol/Cpu.h>
|
---|
14 |
|
---|
15 | STATIC EFI_CPU_ARCH_PROTOCOL *mCpu;
|
---|
16 |
|
---|
17 | EFI_STATUS
|
---|
18 | EFIAPI
|
---|
19 | ArmCrashDumpDxeInitialize (
|
---|
20 | IN EFI_HANDLE ImageHandle,
|
---|
21 | IN EFI_SYSTEM_TABLE *SystemTable
|
---|
22 | )
|
---|
23 | {
|
---|
24 | EFI_STATUS Status;
|
---|
25 |
|
---|
26 | Status = gBS->LocateProtocol (&gEfiCpuArchProtocolGuid, NULL, (VOID **)&mCpu);
|
---|
27 | ASSERT_EFI_ERROR (Status);
|
---|
28 |
|
---|
29 | return mCpu->RegisterInterruptHandler (
|
---|
30 | mCpu,
|
---|
31 | EXCEPT_AARCH64_SYNCHRONOUS_EXCEPTIONS,
|
---|
32 | &DefaultExceptionHandler
|
---|
33 | );
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.