/** @file\r
Common header file for CPU Exception Handler Library.\r
\r
- Copyright (c) 2012 - 2019, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2012 - 2022, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
#define CPU_EXCEPTION_NUM 32\r
#define CPU_INTERRUPT_NUM 256\r
-#define HOOKAFTER_STUB_SIZE 16\r
+#define HOOKAFTER_STUB_SIZE 18\r
\r
//\r
// Exception Error Code of Page-Fault Exception\r
);\r
\r
/**\r
- Setup separate stack for specific exceptions.\r
+ Setup separate stacks for certain exception handlers.\r
\r
- @param[in] StackSwitchData Pointer to data required for setuping up\r
- stack switch.\r
+ @param[in] Buffer Point to buffer used to separate exception stack.\r
+ @param[in, out] BufferSize On input, it indicates the byte size of Buffer.\r
+ If the size is not enough, the return status will\r
+ be EFI_BUFFER_TOO_SMALL, and output BufferSize\r
+ will be the size it needs.\r
\r
- @retval EFI_SUCCESS The exceptions have been successfully\r
- initialized with new stack.\r
- @retval EFI_INVALID_PARAMETER StackSwitchData contains invalid content.\r
+ @retval EFI_SUCCESS The stacks are assigned successfully.\r
+ @retval EFI_BUFFER_TOO_SMALL This BufferSize is too small.\r
+ @retval EFI_UNSUPPORTED This function is not supported.\r
**/\r
EFI_STATUS\r
ArchSetupExceptionStack (\r
- IN CPU_EXCEPTION_INIT_DATA *StackSwitchData\r
+ IN VOID *Buffer,\r
+ IN OUT UINTN *BufferSize\r
);\r
\r
/**\r