From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web09.5216.1621574860487801842 for ; Thu, 20 May 2021 22:27:40 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=apul63aF; spf=pass (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=07758c9eba=daniel.schaefer@hpe.com) Received: from pps.filterd (m0148663.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 14L5RTvS008308; Fri, 21 May 2021 05:27:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=pps0720; bh=W/JvIdfw3vZkicZl7K409CCh28x3TDc9Pqe39Fay7SA=; b=apul63aFqlzIyj4XsR/swNTskcHltJw1hkIJ1B1wi6wp+f5J/G1fQ8aK8SrHCpMpnOaR A2BgOqHYMABnRIzjKztx5cbfV44/1L4Ts5QbLLTsiC6VYVQjghk4eSerJbfZemZy7MYG bG7Bk0ZY3OmaDB9WFV3Lq9jwJHF9S70YR4bp5/M7ghBDU8rq3MZZ/lM2NVyrd4xmSNQB lUeYmbFtUj6JjhSnF57LzBbglv1hItHvXe9Hfo+PfVnVz7Mcl2HOOFffoflYVtD+rf0n aDqZ3cGrf3/FkHIOnXRANmMsDNEpqYoF3iVwEi3Edg3e00iHgbzpvXWBgSf3/qWzS2FG AA== Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0a-002e3701.pphosted.com with ESMTP id 38npgjg1m6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 May 2021 05:27:28 +0000 Received: from G1W8107.americas.hpqcorp.net (g1w8107.austin.hp.com [16.193.72.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g2t2353.austin.hpe.com (Postfix) with ESMTPS id 509A690; Fri, 21 May 2021 05:27:27 +0000 (UTC) Received: from G4W9120.americas.hpqcorp.net (2002:10d2:150f::10d2:150f) by G1W8107.americas.hpqcorp.net (2002:10c1:483b::10c1:483b) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 21 May 2021 05:27:05 +0000 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (15.241.52.12) by G4W9120.americas.hpqcorp.net (16.210.21.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Fri, 21 May 2021 05:27:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YgnoehhVCI9RO0dX+b+Xge/TcO5z+hogFWQB0OMsHFRsyb5U+KCBR65MFbTW8Z4+27Zu2YK1XJ9BDS4K+ZB1a+Gpe54azPequPF5sgAY5sfJZX75i/ZjBhiiRnB4IM/jFOr98L0+J7zMPtLSXc4N3Z2r93xLKoR/jI4u7KY7JdIgK5ls8xcjp/Z/5WGr7tvNRKOTEop+cCnejM4mShAm3jfyiyXJNhOpF51VCt0WevV2HSEGTlWpIg7g/AwbF3LogrgH7ZwIHXwIHmvWZK4PLDdTTP1vctCoLC7tLQoI3wm/9ogzSNqeiwrRVEbZgd8HgPxOSLbDgVs0H/NsgKdWAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k8SaiZ3l/1ruXkywp0xM3rHwLMLZbDfCB2Avr9D7SU0=; b=SWVhx8IpaE7SVjyR1OR0NXLy9SKp0iZXGK/DccwzHxEU+8qIVNcGjHvTzbDxzghFelKttZ7VsQnlAOlkNYCtB+SAVM6v+3iqKIEJKBVROGui4ZxFt05MsZih7IT4C1fotOG13pfN1WYnimfEtIOY74ufB4dn4lc9g9f5+olgpKJHYXcpM6dIUDAsHk2giRAnnt+PE5ZH3y6DTHnBnGZ98dV3SezsIbaX5BFxNj2b2GQHP8f6pWZO+U/vVCZazoxNlVlNrddyZkxvuz+CCiHC0+ECahjrsSZMkQDbDgNk37ilhqyFiALcG/QQDU1QIrdVIBZ/iNScD/uWBa8QbC+/kw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760d::23) by DF4PR8401MB0394.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7606::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.25; Fri, 21 May 2021 05:27:04 +0000 Received: from DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM ([fe80::1055:761b:7ee6:52ca]) by DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM ([fe80::1055:761b:7ee6:52ca%11]) with mapi id 15.20.4129.033; Fri, 21 May 2021 05:27:04 +0000 From: "Daniel Schaefer" To: "devel@edk2.groups.io" , "gaoliming@byosoft.com.cn" CC: "Chang, Abner (HPS SW/FW Technologist)" , "'Michael D Kinney'" , 'Zhiguang Liu' , 'Leif Lindholm' Subject: =?UTF-8?B?UmU6IOWbnuWkjTogW2VkazItZGV2ZWxdIFtQQVRDSCB2MSAxLzFdIEFkZCBNZW1vcnlGZW5jZSBpbXBsZW1lbnRhdGlvbiBmb3IgUmlzY1Y2NA==?= Thread-Topic: =?gb2312?B?u9i4tDogW2VkazItZGV2ZWxdIFtQQVRDSCB2MSAxLzFdIEFkZCBNZW1vcnlG?= =?gb2312?Q?ence_implementation_for_RiscV64?= Thread-Index: AQHXSbXpzrM7QzpXB0KAHEzMYYHdfarocBGAgAAZZwCABON/gIAAAvEd Date: Fri, 21 May 2021 05:27:03 +0000 Message-ID: References: <20210515181234.15186-1-daniel.schaefer@hpe.com> <009501d74b81$bf063b40$3d12b1c0$@byosoft.com.cn> ,<003d01d74e00$321459c0$963d0d40$@byosoft.com.cn> In-Reply-To: <003d01d74e00$321459c0$963d0d40$@byosoft.com.cn> Accept-Language: en-US, de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=hpe.com; x-originating-ip: [123.193.59.220] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6c791d7a-b6bb-469c-c328-08d91c191154 x-ms-traffictypediagnostic: DF4PR8401MB0394: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8q90bp/k5F89HBu3LtBIQnma0l1v//gS3FXb5GmR51PVyiR1zdjSVuMD30vZs66GYZm6JO5x9p5gyec6q+EbURbu8CCyGg6X1nd7UTeUN1tDIOotS8m1d+9P3INy4Jzu/DnPrKd3MCYyLC6T9o5I5XLSi/wJP2Vw/RCg38hbmQqiK1rdolc1Yx93R9i+TvlFc5PQRVdgzpP1CK01TTvXiMDz/gRrcrykX93HwGrIwjTalANb0SN9NYpRKIMAND+v002q8hfVOrpufanUj4yK/N8FpSopS+BkeyHDzCTS5n2YbxAdafAnxrus7cOMgwK0uyba9a723JyCerNvPEF63jkKOwNsBaX+iRYcu6p1+WCE2v1Q/fur3X42F4s47wZvvAPCjuJq4DagIH+mJ2aG+JOOqtGY3tElHO/eQqdBzH3xkTqncxsYhSkJZ+zxH3kzWu42Z45dkxqtKefMBbI2epo2PFE7PjzwGCn/6DSixZmZE6uRQllnIYnyoJs6/BRpDc/kUAYP622Bk2JVah+2hNzQNuv/PVI7+D8xK1EH/3CSclLnSNUSbOBMbU25mBA3rCZoewCQmcTTbtS4m8qla1ZwpXgOEolGk1rN3qvCxLvtLde81fOrNr7o+Ix72QpuLubeRo9ZUZg8CHq7v7NsgjGuZSHYB+svgAvSYEXd6zxMWtp8GKl/wNWyKS3R44oU2XO/yU1D+64WBlvSjT4WGA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(376002)(396003)(366004)(39860400002)(136003)(346002)(52536014)(966005)(19627235002)(166002)(478600001)(83380400001)(186003)(224303003)(54906003)(4326008)(316002)(9686003)(110136005)(55016002)(91956017)(19627405001)(2906002)(86362001)(66446008)(7696005)(66556008)(66476007)(64756008)(66946007)(26005)(122000001)(5660300002)(38100700002)(71200400001)(6506007)(33656002)(53546011)(76116006)(8936002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?gb2312?B?RmJDRVp4K3RPblRsY29UTmpkSlp1WkllRkg1M2ZvYkdMVDdOT1FkMHZDeEl2?= =?gb2312?B?ZWdYYjVnOXZFK1BOSlRRZkxXeU9GR3prMzdzZHlBQXZITFI3UG1zak5SaDdO?= =?gb2312?B?aGNlY1hIaThtSkdKd2o5Z2o2NXlEcjI0NGYrcEFlaXRqMmRZbDFhREh1MWM0?= =?gb2312?B?c1EyVnQzTnJOTHFHaGZGZ2k5NVdqUEEzdEtyM3VZbWJsSEVUaFR2Z3AzaTc0?= =?gb2312?B?dlJxZTNOQVM3aE91LzVBdVBnSElYandSakt1b0JpQkcwMjJQMXozU2lsYklM?= =?gb2312?B?aGZyOCtpLzNBdnFDMmkwamNOaFVWclpnQlpvWUpCSUNKOWNPdTFsYjJJQ05t?= =?gb2312?B?RWFDVWlxVndIWmVIUDJ2U01IT1pDWWpzRU5TdFVnM0cvRkY2RE16dG5qZHR1?= =?gb2312?B?S05ZN3FUSGY3K2NCVEJjV3QxS2Q5Zy85bURxUXZBSXpVZVlabjdKbHd0T1BH?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jBlenZKR0ZO?= =?gb2312?B?elpXVm5veEpyYVZ4Y1d6dUJGQmFtbmpDa0dHMEtwVG5zSlJhSG1kSDd4Q0Qv?= =?gb2312?B?M3N3dEFNYlkrVmJPVGZlL3NyRjJLUGJoWTBuT1dMbUxRWFlyTWVaQk5mL1ZF?= =?gb2312?B?LzdmR2dtK2VQU0NQbzByeGw5RTZmWko3Sm5aWnlNMFNzTWdNTU5sbEhUUTZl?= =?gb2312?B?a3ZTT2lEbG8yNmVBaXJyWDJHT3BrbVJVelhaRElyOEpucmRieHBKNC9pdFV3?= =?gb2312?B?OEVBalpWMXB4M1Vwdk1qT25yRHdlc0dnSGZJeTJQc0dRckRVY0RteXNzeUJr?= =?gb2312?B?bjY0SllOUWxRMTR3aXEyOU9pN2xRQ04vNG5rbC9YSkprVHNyMGlyeGZhZzFX?= =?gb2312?Q?WUpXMlk92bC+pLP8RuJLp4M7gGJ3r7SBSF4rPc5?= X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0444.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 6c791d7a-b6bb-469c-c328-08d91c191154 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 May 2021 05:27:03.8804 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6NYubwiH+ZgiGJDNbbPtG+6fiqwLnscyulZuky9GwvLh+SqguW53x1ewMSdRU6aRnAsKjGmerKBC1TvB1lL7MQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0394 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: 2uek2jAyAbA5pmL4bapaUMaETsYKqxPL X-Proofpoint-ORIG-GUID: 2uek2jAyAbA5pmL4bapaUMaETsYKqxPL X-Proofpoint-UnRewURL: 12 URL's were un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-05-21_03:2021-05-20,2021-05-21 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=0 mlxlogscore=999 priorityscore=1501 impostorscore=0 mlxscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105210035 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DF4PR8401MB0444377194841FBDAEF1C295E0299DF4PR8401MB0444_" --_000_DF4PR8401MB0444377194841FBDAEF1C295E0299DF4PR8401MB0444_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 R3JlYXQhDQoNCkl0IGlzIHZlcmlmaWVkIEkgY2FuIGJvb3QgTGludXggZnJvbSBhIHZpcnRpbyBF U1AgdXNpbmcgdGhpcyBwYXRjaCBvbiBRRU1VIHZpcnQgbWFjaGluZS4NClNlZTogaHR0cHM6Ly9n aXRodWIuY29tL3Jpc2N2L3Jpc2N2LWVkazItcGxhdGZvcm1zL3J1bnMvMjYxODgxOTAxMD9jaGVj a19zdWl0ZV9mb2N1cz10cnVlDQoNClRoYW5rcywNCkRhbmllbA0KX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX18NCkZyb206IGRldmVsQGVkazIuZ3JvdXBzLmlvIDxkZXZlbEBlZGsyLmdy b3Vwcy5pbz4gb24gYmVoYWxmIG9mIGdhb2xpbWluZyA8Z2FvbGltaW5nQGJ5b3NvZnQuY29tLmNu Pg0KU2VudDogRnJpZGF5LCBNYXkgMjEsIDIwMjEgMTM6MTQNClRvOiBkZXZlbEBlZGsyLmdyb3Vw cy5pbyA8ZGV2ZWxAZWRrMi5ncm91cHMuaW8+OyBTY2hhZWZlciwgRGFuaWV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NlKToNCj4gPj4NCj4gPj4NCj4gPj4gKyAgICAvLyBGZW5jZSBvbiBhbGwgbWVt b3J5IGFuZCBJL08NCj4gPj4NCj4gPj4NCj4gPj4gKyAgICBmZW5jZQ0KPiA+Pg0KPiA+Pg0KPiA+ PiArICAgIHJldA0KPiA+Pg0KPiA+Pg0KPiA+PiAtLQ0KPiA+PiAyLjMwLjENCj4gPj4NCj4gPj4N Cj4gPj4NCj4gPj4NCj4gPj4NCj4gPg0KPiA+DQo+ID4NCj4gPg0KPiA+DQo+ID4NCj4gPg0KPiA+ DQo+DQo+DQo+DQo+DQoNCg0KDQoNCg0KDQoNCg0K --_000_DF4PR8401MB0444377194841FBDAEF1C295E0299DF4PR8401MB0444_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
Great!

It is verified I can boot Linux from a virtio ESP using this patch on QEMU= virt machine.

Thanks,
Daniel

From: devel@edk2.groups.io= <devel@edk2.groups.io> on behalf of gaoliming <gaoliming@byosoft.= com.cn>
Sent: Friday, May 21, 2021 13:14
To: devel@edk2.groups.io <devel@edk2.groups.io>; Schaefer, Da= niel <daniel.schaefer@hpe.com>
Cc: Chang, Abner (HPS SW/FW Technologist) <abner.chang@hpe.com&g= t;; 'Michael D Kinney' <michael.d.kinney@intel.com>; 'Zhiguang Liu' &= lt;zhiguang.liu@intel.com>; 'Leif Lindholm' <leif@nuviainc.com> Subject: =BB=D8=B8=B4: =BB=D8=B8=B4: [edk2-devel] [PATCH v1 1/1] Ad= d MemoryFence implementation for RiscV64
 
Daniel:
  Now, it is clear to me. So, I suggest to merge this change when it = is
verified on generic RISC-V QEMU virt machine. Is it OK?

Thanks
Liming
> -----=D3=CA=BC=FE=D4=AD=BC=FE-----
> =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io <devel@edk2.groups.io>= =B4=FA=B1=ED Daniel
> Schaefer
> =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA5=D4=C218=C8=D5 10:35
> =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io; gaoliming@byosoft.com.cn > =B3=AD=CB=CD: 'Abner Chang' <abner.chang@hpe.com>; 'Michael D K= inney'
> <michael.d.kinney@intel.com>; 'Zhiguang Liu' <zhiguang.liu@i= ntel.com>;
'Leif
> Lindholm' <leif@nuviainc.com>
> =D6=F7=CC=E2: Re: =BB=D8=B8=B4: [edk2-devel] [PATCH v1 1/1] Add Memor= yFence
> implementation for RiscV64
>
> On 5/18/21 9:04 AM, gaoliming wrote:
> > Daniel:
> >  Seemly, this API is missing in BaseLib for RiscV64 arch. H= ow do you
detect
> > this issue?
>
> What do you mean it's missing?
> Yes MemoryFence() for RiscV64 is missing currently, that's why I'm ad= ding
it
> here.
>
> Maybe you mean that it's not currently used? That's also true.
> I'm enabling the generic QEMU virt machine (like OVMF or ArmVirtPkg) = for
> RISC-V.
> At least QemuFwCfgLib and VirtioLib need it.
> That's why I have the need to add this implementation now.
>
> Does that clear it up?
>
> > Thanks
> > Liming
> >> -----=D3=CA=BC=FE=D4=AD=BC=FE-----
> >> =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io <devel@edk2.grou= ps.io> =B4=FA=B1=ED Daniel
> >> Schaefer
> >> =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA5=D4=C216=C8=D5 2:13
> >> =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io
> >> =B3=AD=CB=CD: Abner Chang <abner.chang@hpe.com>; Micha= el D Kinney
> >> <michael.d.kinney@intel.com>; Liming Gao <gaoliming= @byosoft.com.cn>;
> >> Zhiguang Liu <zhiguang.liu@intel.com>; Leif Lindholm <leif@nuviainc.com>
> >> =D6=F7=CC=E2: [edk2-devel] [PATCH v1 1/1] Add MemoryFence im= plementation for
> >> RiscV64
> >>
> >> Cc: Abner Chang <abner.chang@hpe.com>
> >> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> >> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> >> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> >> Cc: Leif Lindholm <leif@nuviainc.com>
> >> Signed-off-by: Daniel Schaefer <daniel.schaefer@hpe.com&g= t;
> >> ---
> >>  MdePkg/Library/BaseLib/BaseLib.inf   &n= bsp;       |  1 +
> >>  MdePkg/Library/BaseLib/RiscV64/MemoryFence.S | 33
> >> ++++++++++++++++++++
> >>  2 files changed, 34 insertions(+)
> >>
> >> diff --git a/MdePkg/Library/BaseLib/BaseLib.inf
> >> b/MdePkg/Library/BaseLib/BaseLib.inf
> >> index b76f3af380ea..b7ab5f632366 100644
> >> --- a/MdePkg/Library/BaseLib/BaseLib.inf
> >> +++ b/MdePkg/Library/BaseLib/BaseLib.inf
> >> @@ -399,6 +399,7 @@
> >>    RiscV64/DisableInterrupts.c
> >>
> >>
> >>    RiscV64/EnableInterrupts.c
> >>
> >>
> >>    RiscV64/CpuPause.c
> >>
> >>
> >> +  RiscV64/MemoryFence.S     &= nbsp;       | GCC
> >>
> >>
> >>    RiscV64/RiscVSetJumpLongJump.S  =   | GCC
> >>
> >>
> >>    RiscV64/RiscVCpuBreakpoint.S  &n= bsp;   | GCC
> >>
> >>
> >>    RiscV64/RiscVCpuPause.S   &= nbsp;       | GCC
> >>
> >>
> >> diff --git a/MdePkg/Library/BaseLib/RiscV64/MemoryFence.S > >> b/MdePkg/Library/BaseLib/RiscV64/MemoryFence.S
> >> new file mode 100644
> >> index 000000000000..283df9356a9a
> >> --- /dev/null
> >> +++ b/MdePkg/Library/BaseLib/RiscV64/MemoryFence.S
> >> @@ -0,0 +1,33 @@
> >>
> >
+##-----------------------------------------------------------------------= --
> > -----
> >>
> >>
> >> +#
> >>
> >>
> >> +# MemoryFence() for RiscV64
> >>
> >>
> >> +
> >>
> >>
> >> +# Copyright (c) 2021, Hewlett Packard Enterprise Developmen= t. All
rights
> >> reserved.
> >>
> >>
> >> +#
> >>
> >>
> >> +# SPDX-License-Identifier: BSD-2-Clause-Patent
> >>
> >>
> >> +#
> >>
> >>
> >>
> >
+##-----------------------------------------------------------------------= --
> > -----
> >>
> >>
> >> +
> >>
> >>
> >> +.text
> >>
> >>
> >> +.p2align 2
> >>
> >>
> >> +
> >>
> >>
> >> +ASM_GLOBAL ASM_PFX(MemoryFence)
> >>
> >>
> >> +
> >>
> >>
> >> +
> >>
> >>
> >> +#/**
> >>
> >>
> >> +#  Used to serialize load and store operations.
> >>
> >>
> >> +#
> >>
> >>
> >> +#  All loads and stores that proceed calls to this fun= ction are
> > guaranteed to
> >> be
> >>
> >>
> >> +#  globally visible when this function returns.
> >>
> >>
> >> +#
> >>
> >>
> >> +#**/
> >>
> >>
> >> +#VOID
> >>
> >>
> >> +#EFIAPI
> >>
> >>
> >> +#MemoryFence (
> >>
> >>
> >> +#  VOID
> >>
> >>
> >> +#  );
> >>
> >>
> >> +#
> >>
> >>
> >> +ASM_PFX(MemoryFence):
> >>
> >>
> >> +    // Fence on all memory and I/O
> >>
> >>
> >> +    fence
> >>
> >>
> >> +    ret
> >>
> >>
> >> --
> >> 2.30.1
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>








--_000_DF4PR8401MB0444377194841FBDAEF1C295E0299DF4PR8401MB0444_--