From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web12.37831.1608550625486686621 for ; Mon, 21 Dec 2020 03:37:05 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KK9LWRsZ; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1608550624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gzjj37UEjH457N/1EeYnm/Oi/5lJr9KGED6kQa5q4ik=; b=KK9LWRsZiDayfuy0iF13Ole8DcEPSeeXQnlM2OhwyK1q1XrEHn+R7adGFF9qlvm3i0ts6m P8eTixb+CZJqA7V2JLQ5r0kHpf5DS4xg8NIPCD5A+nPJe7s9p2xD+1r0ttiJ5YICHwumH5 efcDcla+23gqVy33m+Rrp6ZRswtnPmo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-363-xJO1P2c-MfipKDMLmtVnhw-1; Mon, 21 Dec 2020 06:37:02 -0500 X-MC-Unique: xJO1P2c-MfipKDMLmtVnhw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A8DC11005E46; Mon, 21 Dec 2020 11:37:01 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-114-71.ams2.redhat.com [10.36.114.71]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8CB971007604; Mon, 21 Dec 2020 11:37:00 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io Cc: Ard Biesheuvel , Leif Lindholm , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 1/2] ArmPlatformPkg/PL031RealTimeClockLib: cast EfiTimeToEpoch() val. to UINT32 Date: Mon, 21 Dec 2020 12:36:56 +0100 Message-Id: <20201221113657.6779-2-lersek@redhat.com> In-Reply-To: <20201221113657.6779-1-lersek@redhat.com> References: <20201221113657.6779-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 SW4gcHJlcGFyYXRpb24gZm9yIGNoYW5naW5nIEVmaVRpbWVUb0Vwb2NoKCkncyByZXR1cm4gdHlw ZSB0byBVSU5UTiwgY2FzdApFZmlUaW1lVG9FcG9jaCgpJ3MgcmV0dmFsIHRvIFVJTlQzMiBleHBs aWNpdGx5LCBpbiBMaWJTZXRUaW1lKCkuCgpDdXJyZW50bHksIHRoaXMgaXMgYSBuby1vcCwgYW5k IGV2ZW4gYWZ0ZXIgd2lkZW5pbmcgdGhlIHJldHZhbCwgaXQgd2lsbAptYWtlIG5vIGRpZmZlcmVu Y2UsIGFzIExpYlNldFRpbWUoKSBleHBsaWNpdGx5IHJlc3RyaWN0cyBUaW1lLT5ZZWFyIHVuZGVy CjIxMDYsIGdpdmVuIHRoYXQgInRoZSBQTDAzMSBpcyBhIDMyLWJpdCBjb3VudGVyIGNvdW50aW5n IHNlY29uZHMiLiBUaGUKcGF0Y2ggaXMgbWFkZSBmb3IgcHJldmVudGluZyBjb21waWxlciB3YXJu aW5ncy4KCkNjOiBBcmQgQmllc2hldXZlbCA8YXJkLmJpZXNoZXV2ZWxAYXJtLmNvbT4KQ2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