From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=UQCxfgXW; spf=pass (domain: linaro.org, ip: 209.85.221.65, mailfrom: leif.lindholm@linaro.org) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by groups.io with SMTP; Wed, 02 Oct 2019 09:46:39 -0700 Received: by mail-wr1-f65.google.com with SMTP id w12so20475709wro.5 for ; Wed, 02 Oct 2019 09:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Ln3LigC057UyUw/0StTOZHch+DDX6g4GOY36OqoBO3c=; b=UQCxfgXWocaP/NUepiAh21Pr5XSQFFXHnN5BhvNfM7HL1GPA0WZEujSNO+xRfbIhle uN4MESFEguo6MUIgb2Tmy5xpgJSoz0mmBF0SE6OSeHop4sViYxImVAuboZvgJMZVypqi et1ts1kuqwxBO8xaR9uldQgd2pyrB1bEQ8KY9rm1jvMWXRIXjm6jAKsli/SOFb8al3/V bjgYIOZgerQ+xUH0WtmLvbAkM1Du+GclIX0pEHrS3RO1rjMs/9OPbzfej9RxutGr5l+j cBLxjaIj3ay79aa0DP82m9rwD4t5S3qtn7C8xTWpEAwaOXwYc1BPDyrQZb1L9sTzb7VE mjjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Ln3LigC057UyUw/0StTOZHch+DDX6g4GOY36OqoBO3c=; b=VGiTCVXLoaClEdmcOSUpg70lCZP5vuWh0pkBaYVCbvKodXB4fqrKqsBbRN6yDwER8g D5628Jv5iELAgBrJuj6Cco0HCAfWHF5VydeTYJ327aT5FmMvpSE7fthzP34LQw+wVWJe azaetoUNH0hXIGfL7j0KVY7CiTV/uGz2IhLcCOCg6v2u4I80cQqNnRuXpI6AdQ71YPkX U4OwSFw2DfLvZlQBO9oNMJuxS/YXoMh9WDi5T4J70cRDmt2iXvWQksNXwzVHnYJYC4di jLEnZCrkIxNMpgWik2dKyqz888GYrsBRC3mmErYv/rEDeVCi6oat1GjIakp8sRxVQaau bB8Q== X-Gm-Message-State: APjAAAW7oVQir8sN7O1m3OjeFOQwzOzLva9BGnXZyXEDWsN5B6xQid/5 SqNNEqatxdn6XJolLQoFNa9uoJRMbn8= X-Google-Smtp-Source: APXvYqyBpPPK7wT5TPTaZEWxzuP+DMN2jhEMEdxGDFXQqYOuoISETwqb6R01YxHZzKSqcRZv+p+fJw== X-Received: by 2002:a5d:6108:: with SMTP id v8mr3398655wrt.28.1570034797268; Wed, 02 Oct 2019 09:46:37 -0700 (PDT) Return-Path: Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id c21sm4461028wmb.46.2019.10.02.09.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2019 09:46:36 -0700 (PDT) Date: Wed, 2 Oct 2019 17:46:30 +0100 From: "Leif Lindholm" To: devel@edk2.groups.io, gilbert.chen@hpe.com Cc: Palmer Dabbelt Subject: Re: [edk2-devel] [plaforms/devel-riscv-v2 PATCHv2 04/14] RiscV/Include: Initial version of header files in RISC-V platform package Message-ID: <20191002164630.GD25504@bivouac.eciton.net> References: <20190919035131.4700-1-gilbert.chen@hpe.com> <20190919035131.4700-5-gilbert.chen@hpe.com> MIME-Version: 1.0 In-Reply-To: <20190919035131.4700-5-gilbert.chen@hpe.com> User-Agent: Mutt/1.10.1 (2018-07-13) Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 19, 2019 at 11:51:21AM +0800, Gilbert Chen wrote: > FirmwareContextProcessorSpecificLib.h > - The difinitions of Firmware Context EDK2 implementaion based on > RISC-V OpenSBI. Typos: difinitions -> definitions implementaion -> implementation > > Signed-off-by: Gilbert Chen > --- > .../Library/FirmwareContextProcessorSpecificLib.h | 40 ++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > create mode 100644 Platform/RiscV/Include/Library/FirmwareContextProcessorSpecificLib.h > > diff --git a/Platform/RiscV/Include/Library/FirmwareContextProcessorSpecificLib.h b/Platform/RiscV/Include/Library/FirmwareContextProcessorSpecificLib.h > new file mode 100644 > index 00000000..772a0783 > --- /dev/null > +++ b/Platform/RiscV/Include/Library/FirmwareContextProcessorSpecificLib.h > @@ -0,0 +1,40 @@ > +/** @file > + Firmware Context Processor-specific common library > + > + Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All rights reserved.
> + > + SPDX-License-Identifier: BSD-2-Clause-Patent > + > +**/ > +#ifndef _FIRMWARE_CONTEXT_PROCESSOR_SPECIFIC_LIB_H_ > +#define _FIRMWARE_CONTEXT_PROCESSOR_SPECIFIC_LIB_H_ Please drop leading _. / Leif > + > +#include > + > +/** > + Build up common firmware context processor-specific information > + > + @param FirmwareContextHartSpecific Pointer to EFI_RISCV_FIRMWARE_CONTEXT_HART_SPECIFIC > + @param ParentProcessorGuid Pointer to GUID of Processor which contains this core > + @param ParentProcessorUid Unique ID of pysical processor which owns this core. > + @param CoreGuid Pointer to GUID of core > + @param HartId Hart ID of this core. > + @param IsBootHart This is boot hart or not > + @param ProcessorSpecDataHob Pointer to RISC_V_PROCESSOR_SPECIFIC_DATA_HOB > + > + @return EFI_STATUS > + > +**/ > +EFI_STATUS > +EFIAPI > +CommonFirmwareContextHartSpecificInfo ( > + EFI_RISCV_FIRMWARE_CONTEXT_HART_SPECIFIC *FirmwareContextHartSpecific, > + EFI_GUID *ParentProcessorGuid, > + UINTN ParentProcessorUid, > + EFI_GUID *CoreGuid, > + UINTN HartId, > + BOOLEAN IsBootHart, > + RISC_V_PROCESSOR_SPECIFIC_DATA_HOB *ProcessorSpecDataHob > + ); > + > +#endif > -- > 2.12.0.windows.1 > > > >