\r
/**\r
Setup separate stacks for certain exception handlers.\r
+ If the input Buffer and BufferSize are both NULL, use global variable if possible.\r
\r
- InitData is optional and processor arch dependent.\r
-\r
- @param[in] InitData Pointer to data optional for information about how\r
- to assign stacks for certain exception handlers.\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 stacks are assigned successfully.\r
@retval EFI_UNSUPPORTED This function is not supported.\r
-\r
+ @retval EFI_BUFFER_TOO_SMALL This BufferSize is too small.\r
**/\r
EFI_STATUS\r
EFIAPI\r
InitializeSeparateExceptionStacks (\r
- IN CPU_EXCEPTION_INIT_DATA *InitData OPTIONAL\r
+ IN VOID *Buffer,\r
+ IN OUT UINTN *BufferSize\r
)\r
{\r
return EFI_UNSUPPORTED;\r