From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x232.google.com (mail-pf0-x232.google.com [IPv6:2607:f8b0:400e:c00::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 64DD521E87960 for ; Tue, 12 Sep 2017 21:04:00 -0700 (PDT) Received: by mail-pf0-x232.google.com with SMTP id e1so21767927pfk.1 for ; Tue, 12 Sep 2017 21:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rQwpR5tDx3uNnbQAztMYQ78/qcj3FGPNTB/5y9es9/Q=; b=iiWhK8NGaLH++sz7/n8EnDhIzF31UTne/pR64cjZIGs/tSebJkgdkPI7KeshPETbvV 9j9LHPp+6Ignt7qOZn2/3WDa8nJP8fajNaIGkiwzZYgf2SisbF9bearqIv5srZK8qHQe bDqurgmZnvFzln+o4L6+fSPkoQFcV8fqyiWn9OdE/85gXHFgZUeaNtWYllQzAq6fiYF1 80DOKa+8gIu35vYXf3l+/7CgLK+wQTgX81nzdTqaDkxwqYeZVlBZwe7dcwJUvJf08BWk 7CD1jt2A5aMM+hG8+lfzNoP+qJvboLyhPEtHyK29FTpg9NS/77jQU7bmDCV2yLJeR6YC VjeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rQwpR5tDx3uNnbQAztMYQ78/qcj3FGPNTB/5y9es9/Q=; b=k9lcARuL08hXKwA/ks7BSaD/24bMMiuMPI4IDhixze7u28TH5LyEfK0PoLGPYvQ8Kt u6ECJA7oDF5tS3tafNuDcGWZm+VXOKWGsB9Hvnz5Ei0133pookEKYG8OEVEv46X5P4d4 4WXeRA8MpHzRlAlYIu2UXgPkLP8xdhxvhJuPur19tzswr8V7AbXu7pInDAz3tGBCMycn ESBdQVkm664/w/C4F9amktp4pHOnRCToUxNF3LiNes0h5PW2eKWsCtJnouiR7996X/uh DL6vjFoFOwE5ZBWU7UHs+LWKQoB/XQRLkE8IbeHx3Uy0DYJLp/7y3+RGfxo/S72VcmIy sR8Q== X-Gm-Message-State: AHPjjUgrxcFQaKh8AxITskIIOkXFSB0gOiYrq9fvOtJ3WaC/FPk6DH9k O69DWlEWMBZHoXcJ1gNz6pKnVlDhGyhtHP6QUpE= X-Google-Smtp-Source: ADKCNb5hP7M4qTtPJknYle+uAf7/2GQKXdlwPwO+22xw7S31Yb4x4JvzFHVE4WyOkiz5qp9B08mlSqRcZjhRfugT87o= X-Received: by 10.99.121.77 with SMTP id u74mr16674056pgc.81.1505275617693; Tue, 12 Sep 2017 21:06:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.148.198 with HTTP; Tue, 12 Sep 2017 21:06:57 -0700 (PDT) In-Reply-To: <4A89E2EF3DFEDB4C8BFDE51014F606A14E139ACD@SHSMSX104.ccr.corp.intel.com> References: <4A89E2EF3DFEDB4C8BFDE51014F606A14E139ACD@SHSMSX104.ccr.corp.intel.com> From: "David F." Date: Tue, 12 Sep 2017 21:06:57 -0700 Message-ID: To: "Gao, Liming" Cc: "edk2-devel@lists.01.org" Subject: Re: StartImage() return value an error or return code ? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 04:04:00 -0000 Content-Type: text/plain; charset="UTF-8" But what if you're running some unknown app that you don't know the return code format in the ExitData? It seems to just read that the ExitData will be some text followed by some binary data. On Mon, Sep 11, 2017 at 12:43 AM, Gao, Liming wrote: > Per UEFI spec, StartImage() has the optional output ExitData. If ExitData is not NULL, the exit status will be from the image. > >>-----Original Message----- >>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of >>David F. >>Sent: Friday, September 08, 2017 2:53 PM >>To: edk2-devel@lists.01.org >>Subject: [edk2] StartImage() return value an error or return code ? >> >>Hi, >> >>Is there a way to tell if the return code from StartImage() is >>actually an error from StartImage() vs the exit code of some >>application (generic application that may return an error code value >>but not set exitdata). It would seem to conflict with >>EFI_INVALID_PARAMETER and EFI_SECURITY_VIOLATION so where actual >>value came from is unknown? >> >>TIA!! >>_______________________________________________ >>edk2-devel mailing list >>edk2-devel@lists.01.org >>https://lists.01.org/mailman/listinfo/edk2-devel