diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-15 20:10:39 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-15 20:10:39 +0000 |
commit | b6b22b132ada04696a0f7481a12169808c3e2b3e (patch) | |
tree | f376a7fe380a769274e4676c2b0be914e115511c /ShellPkg/Include/Library/ShellCommandLib.h | |
parent | a0248b09366c096be88a2fbaaff071b28b5d4ca5 (diff) | |
download | edk2-platforms-b6b22b132ada04696a0f7481a12169808c3e2b3e.tar.xz |
ShellPkg: Eliminate loss of high bits in return value from exit command on 64 bit platform.
submitted-by: jcarsey
reviewed-by: gookboy15a
reviewed-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12356 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Include/Library/ShellCommandLib.h')
-rw-r--r-- | ShellPkg/Include/Library/ShellCommandLib.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/ShellPkg/Include/Library/ShellCommandLib.h b/ShellPkg/Include/Library/ShellCommandLib.h index f453d22f3d..0f4f503410 100644 --- a/ShellPkg/Include/Library/ShellCommandLib.h +++ b/ShellPkg/Include/Library/ShellCommandLib.h @@ -340,11 +340,24 @@ ShellCommandSetEchoState ( Indicate that the current shell or script should exit.
@param[in] ScriptOnly TRUE if exiting a script; FALSE otherwise.
+ @param[in] ErrorCode The 64 bit error code to return.
**/
VOID
EFIAPI
ShellCommandRegisterExit (
- IN BOOLEAN ScriptOnly
+ IN BOOLEAN ScriptOnly,
+ IN CONST UINT64 ErrorCode
+ );
+
+/**
+ Retrieve the Exit code.
+
+ @return the value passed into RegisterExit.
+**/
+UINT64
+EFIAPI
+ShellCommandGetExitCode (
+ VOID
);
/**
|