]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuException.c
UefiCpuPkg: Simplify InitializeSeparateExceptionStacks
[mirror_edk2.git] / UefiCpuPkg / Library / CpuExceptionHandlerLib / SecPeiCpuException.c
index 4313cc5582e3cd7d066478ea43c7bdc5b16035fb..ad5e0e9ed4f1f71b62e33733a5b40a853b4e7bc6 100644 (file)
@@ -201,20 +201,23 @@ RegisterCpuInterruptHandler (
 \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