From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mx.groups.io with SMTP id smtpd.web09.1945.1662484170667681449 for ; Tue, 06 Sep 2022 10:09:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=X/ASu+CV; spf=pass (domain: ventanamicro.com, ip: 209.85.214.181, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pl1-f181.google.com with SMTP id 9so8704568plj.11 for ; Tue, 06 Sep 2022 10:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=a0pR19f6z2eJ6v0cbBl3ciKibkjn3KedsxPKopOCrMw=; b=X/ASu+CVhLyNeTBFT3zK/y/Oh38isjxeiHv3vjfu1jGDrTQIkNMHsb60UIRXk9s/fi YcFpO0Urcr4ExuKMD/x3vi77+O5ohUm47CQYxOoaaFhKNkTKVJJq33wm3M2cjk3GgcxG O3eXTADBH9qklCTyy1opwA/w0CnSHX2H3pdcf3FVoJGMpeOF8rUw8odkT5NBOh4yGYiO Zo8QifI5cPV4ONUFE8gR0YsFznfAvIlIaSb1Foq7MM+Lyy/kf1aBouzXqkZ8xzttnNY5 5ynbINJpgvWU9KwIrgaV98VXcTFzj5jsvEPe8RKgdEYoHknUillZWWSFx9AAQE0gDljU 6h8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=a0pR19f6z2eJ6v0cbBl3ciKibkjn3KedsxPKopOCrMw=; b=f8ibLHNkyu+GvRCKwf9cA1WaGBsIe4kJjoVXES62sdun3pdg7Dr3LAiUFuo9UfRzuB CP7bq7VY6H/9+BQ1jy0so93kgYnLQXLfXkAchW+p805QDlduf7uXrD9M6SU4IgU4yeEo R2CNtGqRkictmLuVh/oK2tWU5vCKXAMiu7vpi3BPF4VD3ee6pCQrnpcw3NeuFbxDdGG6 RXPHmvbBfIj1adE34uuTnlH8NGblyr4FjXa+wNInPiWsAQhl1vq56/pQygVK+2PfZ6rm 8o07xMmsj8cw956bTAjbirSGjksReS/LeLUOVuvN4mrbskThcXZzx+eQShK5atGikt82 YNWA== X-Gm-Message-State: ACgBeo3cU6XJxFBGPWR6riKyKYppD9r8b+zM4lCH/voQeczvR2lJ7HuM SOEhZB2H+MTV4V6TEk3gH7ufEVJqqV1WDxP3 X-Google-Smtp-Source: AA6agR5SxhNO0EqxNQlj2EHx4rKzQcd5Qvsez3qevlTwJFYvVz1BByVaI4jxVrv5gHcQqKBNZb0M1g== X-Received: by 2002:a17:90b:4f91:b0:1cd:3a73:3a5d with SMTP id qe17-20020a17090b4f9100b001cd3a733a5dmr19643697pjb.98.1662484170049; Tue, 06 Sep 2022 10:09:30 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([49.206.11.92]) by smtp.gmail.com with ESMTPSA id b17-20020a170903229100b00176be258f41sm3806567plh.91.2022.09.06.10.09.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 10:09:29 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Eric Dong , Ray Ni , Rahul Kumar , Debkumar De , Catharine West , Daniel Schaefer , Abner Chang , Leif Lindholm , Ard Biesheuvel , Heinrich Schuchardt , Anup Patel , Sunil V L Subject: [RFC PATCH 09/17] UefiCpuPkg/DxeCpuExceptionHandlerLib: Refactor to add other architectures Date: Tue, 6 Sep 2022 22:38:29 +0530 Message-Id: <20220906170837.491525-10-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220906170837.491525-1-sunilvl@ventanamicro.com> References: <20220906170837.491525-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Currently the common sources mean x86 only in this library. To add support for other architectures like RISC-V, we need to build these files only for x86. Signed-off-by: Sunil V L --- .../CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandl= erLib.inf b/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandle= rLib.inf index e7a81bebdb..bf33d54bae 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.i= nf +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.i= nf @@ -32,7 +32,7 @@ X64/ArchExceptionHandler.c=0D X64/ArchInterruptDefs.h=0D =0D -[Sources.common]=0D +[Sources.IA32, Sources.X64]=0D CpuExceptionCommon.h=0D CpuExceptionCommon.c=0D PeiDxeSmmCpuException.c=0D @@ -56,8 +56,10 @@ SerialPortLib=0D PrintLib=0D SynchronizationLib=0D - LocalApicLib=0D PeCoffGetEntryPointLib=0D MemoryAllocationLib=0D DebugLib=0D +=0D +[LibraryClasses.IA32, LibraryClasses.X64]=0D + LocalApicLib=0D VmgExitLib=0D --=20 2.25.1