From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by mx.groups.io with SMTP id smtpd.web10.10185.1678358246830392227 for ; Thu, 09 Mar 2023 02:37:26 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=PpW01VYN; spf=pass (domain: rivosinc.com, ip: 209.85.214.177, mailfrom: dhaval@rivosinc.com) Received: by mail-pl1-f177.google.com with SMTP id a2so1509565plm.4 for ; Thu, 09 Mar 2023 02:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1678358246; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=49bVWHIdCDzr10NfcMpEN3xMmt1fUmYlwP2H4aRuvDk=; b=PpW01VYNUuVwEvLTaTfBCNV240XX3mHO1VTgCNZ/XSlEgUqCjvkiUzCE6hko+4xiUG e4rjqZJnWHMgLb3vRCQgzDsmtmdstxS3LJcWUUriVDK2kHuGzbZGHiC+jtwKxR1jHNIK x3n5Z68wJWSB010E5Lk/V9Fc2TXrI0Sc1jKPSwnP0MnGWyZKkBOjzTss7HAD/ZIaeAlc mNo3aPyk1qODEopTkOEgaUif7hfmVhtEFTiqHW/RX/yUkN6auEXqbSLkD/LzddI1I9K1 VPD+lHA/77sB425piMpwVhwnP7DMFbHJs1HU1AiY4PsrBZdxfJNQyiAwYsDXK66veuSd Ph1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678358246; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=49bVWHIdCDzr10NfcMpEN3xMmt1fUmYlwP2H4aRuvDk=; b=2F5My46J9+YWrWY/BaWK8VwdzDLaBBDIcVwj9Juw553Am7zHmDdUbjtkcz4/4M7kuY XGbk2/BJ5rw1VbGndrCNu5s6eALcfujk7ayh4tSaClT4MCP770LDvPSFuftqbYjwbfJt sM98PJgnmCVMz/6HAqO+sAO2xuF9LzHrAY1e5KRBwk/lDx2qJljNjBN0FbJqaBcsgo/H u/ecnWfPq4N2IRBbZRzEMW67xfbatV+sT59tOcHVsfmW1GDaicbKkK5T0bBr6pB/ZavL 9RwsQ6g3Fl0qbxBqPUvYv3dpNF3rruPqFk35BNRutjAV0hqk9sbVu5/IbNIQmfcso5Yr DdQQ== X-Gm-Message-State: AO0yUKVNqrsF2yc29BbS2ikIIVb/bsM+7NsCsi0itFScwm0BuSi9dcMo 5M0Kr/rhs11gQQl9JYl1z2mFW7QFNAmf0PeocuT3ZA== X-Google-Smtp-Source: AK7set+iumPGtfsEShnBIvUNBw7OgfBAtuLSvwVJ4KCG173wzz83tYfycYE81BAoJ88gwBrIxd1njw== X-Received: by 2002:a17:90a:804a:b0:237:8f8a:6e4c with SMTP id e10-20020a17090a804a00b002378f8a6e4cmr21908164pjw.30.1678358245859; Thu, 09 Mar 2023 02:37:25 -0800 (PST) Return-Path: Received: from dhaval.. ([171.76.81.12]) by smtp.gmail.com with ESMTPSA id nm19-20020a17090b19d300b002340f58e19bsm1293374pjb.45.2023.03.09.02.37.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 02:37:25 -0800 (PST) From: "Dhaval Sharma" To: devel@edk2.groups.io Subject: [PATCH v3 0/2] Upl remove arch spec initialization Date: Thu, 9 Mar 2023 16:07:19 +0530 Message-Id: <20230309103721.1869468-1-dhaval@rivosinc.com> X-Mailer: git-send-email 2.40.0.rc0.57.g454dfcbddf MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Looking at adding support for Risc-V for UPL. In the process realised there are several initialisation sequences which need not be part of common UPL entry flow. The flow should be agnostic to both BL and Arch with required hooks provided along the boot path. This patch set addresses 2 such instances related to 8259 interrupt and FP programming. To be on a safer side for now just moving this init to arch folders. Dhaval Sharma (2): UefiPayloadPkg: Remove FP Init from UPL entry UefiPayloadPkg: Move INT prog outside common flow UefiPayloadPkg/UefiPayloadEntry/Ia32/DxeLoadFunc.c | 9 +++++++++ UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.c | 9 --------- UefiPayloadPkg/UefiPayloadEntry/X64/DxeLoadFunc.c | 9 +++++++++ 3 files changed, 18 insertions(+), 9 deletions(-) -- 2.40.0.rc0.57.g454dfcbddf