[edk2-devel] [PATCH v0] Platform/NXP: Add Dynamic Acpi for layerscape platforms
Vikas Singh via groups.io
vikas.singh=puresoftware.com at groups.io
Wed Jan 27 06:51:46 UTC 2021
On Tue, Jan 26, 2021 at 4:49 PM Leif Lindholm <leif at nuviainc.com> wrote:
>
> Hi Vikas,
>
> On Tue, Jan 19, 2021 at 10:11:43 +0530, Vikas Singh wrote:
> > > > > > +/** A helper macro for returning configuration manager objects
> > > > > > +*/
> > > > > > +#define HANDLE_CM_OBJECT(ObjId, CmObjectId, Object, ObjectCount) \
> > > > > > + case ObjId: { \
> > > > > > + CmObject->ObjectId = CmObjectId; \
> > > > > > + CmObject->Size = sizeof (Object); \
> > > > > > + CmObject->Data = (VOID*)&Object; \
> > > > > > + CmObject->Count = ObjectCount; \
> > > > > > + DEBUG (( \
> > > > > > + DEBUG_INFO, \
> > > > > > + #CmObjectId ": Ptr = 0x%p, Size = %d, Count = %d\n", \
> > > > > > + CmObject->Data, \
> > > > > > + CmObject->Size, \
> > > > > > + CmObject->Count \
> > > > > > + )); \
> > > > > > + break; \
> > > > > > + }
> > > > >
> > > > > This is code obfuscation. Please don't invent your own programming
> > > > > languages. In C, the case, the start bracket, the break and the end
> > > > > bracket always go inline.
> > > > > The rest would be better as a static helper function than a macro.
> > > > >
> > > > Leif, changes are in accordance with :
> > > > https://raw.githubusercontent.com/tianocore-docs/Docs/master/Specifications/CCS_2_1_Draft.pdf
> > >
> > > Do you mean 5.5.2.1:
> > > Functional macros are generally discouraged.
> > > ?
> >
> > Leif + Sami, I was referring section 5.7.3.7, since you commented on
> > switch case & break statement.
> > However keeping section 5.5.2.1 in consideration, I have done few
> > changes and shared updated V1 series.
> > Could you please have a look on it and revert, if in case you have any concerns.
>
> I have not seen any update?
>
> Please have a look at Sami's updates to the ARM platform code, which I
> merged yeaterday.
>
> Best Regards,
>
> Leif
>
Leif , I have sent an updated V2 patch series today. FYI.
Thnx.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#70823): https://edk2.groups.io/g/devel/message/70823
Mute This Topic: https://groups.io/mt/79415929/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list