From: "Andrei Warkentin" <andrei.warkentin@intel.com>
To: "Yao, Jiewen" <jiewen.yao@intel.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Li, Yong" <yong.li@intel.com>,
Sunil V L <sunilvl@ventanamicro.com>,
"Tuan Phan" <tphan@ventanamicro.com>,
Daniel Schaefer <git@danielschaefer.me>
Subject: Re: [edk2-devel] [PATCH v1 1/1] RISCV: Fix InternalLongJump to return correct value
Date: Tue, 19 Sep 2023 08:04:32 +0000 [thread overview]
Message-ID: <PH8PR11MB6856529986840C49D01E641783FAA@PH8PR11MB6856.namprd11.prod.outlook.com> (raw)
In-Reply-To: <MW4PR11MB5872DD6BCE2CDED61935A4BB8CFAA@MW4PR11MB5872.namprd11.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 3417 bytes --]
My mistake. Didn't see that pulled in... Will rework.
________________________________
От: Yao, Jiewen <jiewen.yao@intel.com>
Отправлено: Tuesday, September 19, 2023 3:01:34 AM
Кому: devel@edk2.groups.io <devel@edk2.groups.io>; Warkentin, Andrei <andrei.warkentin@intel.com>
Копия: Li, Yong <yong.li@intel.com>; Sunil V L <sunilvl@ventanamicro.com>; Tuan Phan <tphan@ventanamicro.com>; Daniel Schaefer <git@danielschaefer.me>
Тема: RE: [edk2-devel] [PATCH v1 1/1] RISCV: Fix InternalLongJump to return correct value
I am OK for the RISC-V change.
Would you please let me know why we need openssl submodule ?
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Andrei
> Warkentin
> Sent: Tuesday, September 19, 2023 12:43 PM
> To: devel@edk2.groups.io
> Cc: Warkentin, Andrei <andrei.warkentin@intel.com>; Li, Yong
> <yong.li@intel.com>; Sunil V L <sunilvl@ventanamicro.com>; Tuan Phan
> <tphan@ventanamicro.com>; Daniel Schaefer <git@danielschaefer.me>
> Subject: [edk2-devel] [PATCH v1 1/1] RISCV: Fix InternalLongJump to return
> correct value
>
> InternalLongJump was not returning the 2nd parameter passed
> to LongJmp (Value) as the return value from SetJmp.
>
> Seen with code compiled with -Os, where an LongJmp (Buffer, -1)
> somehow translated to SetJmp returning 0...
>
> Cc: Yong Li <yong.li@intel.com>
> Cc: Sunil V L <sunilvl@ventanamicro.com>
> Cc: Tuan Phan <tphan@ventanamicro.com>
> Cc: Daniel Schaefer <git@danielschaefer.me>
> Signed-off-by: Andrei Warkentin <andrei.warkentin@intel.com>
> ---
> CryptoPkg/Library/OpensslLib/openssl | 2 +-
> MdePkg/Library/BaseLib/RiscV64/RiscVSetJumpLongJump.S | 7 ++-----
> 2 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/CryptoPkg/Library/OpensslLib/openssl
> b/CryptoPkg/Library/OpensslLib/openssl
> index de90e54bbe82..830bf8e1e474 160000
> --- a/CryptoPkg/Library/OpensslLib/openssl
> +++ b/CryptoPkg/Library/OpensslLib/openssl
> @@ -1 +1 @@
> -Subproject commit de90e54bbe82e5be4fb9608b6f5c308bb837d355
> +Subproject commit 830bf8e1e4749ad65c51b6a1d0d769ae689404ba
> diff --git a/MdePkg/Library/BaseLib/RiscV64/RiscVSetJumpLongJump.S
> b/MdePkg/Library/BaseLib/RiscV64/RiscVSetJumpLongJump.S
> index 34486eabba4c..e97a7d0727b8 100644
> --- a/MdePkg/Library/BaseLib/RiscV64/RiscVSetJumpLongJump.S
> +++ b/MdePkg/Library/BaseLib/RiscV64/RiscVSetJumpLongJump.S
> @@ -3,6 +3,7 @@
> // Set/Long jump for RISC-V
> //
> // Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights
> reserved.<BR>
> +// Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
> //
> // SPDX-License-Identifier: BSD-2-Clause-Patent
> //
> @@ -47,9 +48,5 @@ InternalLongJump:
> REG_L s10, 11*SZREG(a0)
> REG_L s11, 12*SZREG(a0)
> REG_L sp, 13*SZREG(a0)
> -
> - add a0, s0, 0
> - add a1, s1, 0
> - add a2, s2, 0
> - add a3, s3, 0
> + mv a0, a1
> ret
> --
> 2.34.1
>
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108819): https://edk2.groups.io/g/devel/message/108819
Mute This Topic: https://groups.io/mt/101450445/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: Type: text/html, Size: 5411 bytes --]
next prev parent reply other threads:[~2023-09-19 8:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-19 4:43 [edk2-devel] [PATCH v1 0/1] RISCV: Fix InternalLongJump Andrei Warkentin
2023-09-19 4:43 ` [edk2-devel] [PATCH v1 1/1] RISCV: Fix InternalLongJump to return correct value Andrei Warkentin
2023-09-19 8:01 ` Yao, Jiewen
2023-09-19 8:04 ` Andrei Warkentin [this message]
2023-09-19 14:31 ` Ard Biesheuvel
2023-09-19 14:41 ` Leif Lindholm
2023-09-19 16:14 ` Andrei Warkentin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=PH8PR11MB6856529986840C49D01E641783FAA@PH8PR11MB6856.namprd11.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox