Giter Site home page Giter Site logo

Comments (6)

topeterk avatar topeterk commented on May 28, 2024

Hi, is this the whole error message, usually the compiler names the things that are conflicting?
There should not be any other function with an incompatible prototype during compilation of the C file.

Are you trying to integrate this into the latest EDK2 source as they have changed a lot, maybe it is because of that?
Then maybe the code must be modified to fit into the latest code base.

I tried to replicated this issue but EDK2 requires pretty much outdated toolchains that I haven't installed any more.
They should care a bit more of supporting latest compilers and update their documentations.
Nevertheless, because of that I cannot check it easily right now.

from shelldynlistprotocols.

topeterk avatar topeterk commented on May 28, 2024

I took this opportunity and had a look into Win11 on a fresh new virtual machine and tried it to reproduce it on this system.
With the EDKII sources from today and VS2019 with X64 build it ran quite well (just had to make a slight adjustment as an old compatibility header was removed in the meantime - Changes were pushed just minutes ago).

I guess you need to have a look for your self unless there a tons of variables I do not know from your system's state, the tooling and local changes to EDKII source that may interfere here.

from shelldynlistprotocols.

kocoman1 avatar kocoman1 commented on May 28, 2024

what is autogen.h doing? I tried to remove something inside but its recreated right away when i build it

from shelldynlistprotocols.

topeterk avatar topeterk commented on May 28, 2024

This is an automatically generated file during the build by the EDK2 tools, see e.g. EDK II Build Specification - AutoGen.h file
There should be no reason to edit this file, better to change the relevant global configurations, dsc settings or inf files accordingly.

from shelldynlistprotocols.

kocoman2 avatar kocoman2 commented on May 28, 2024

ok I got it to work, I compared helloworld.c and yours and added the EFIAPI below the EFI_STATUS in line 47 of your c (on linux system, set x64 and gcc5)

from shelldynlistprotocols.

topeterk avatar topeterk commented on May 28, 2024

yes, you are right, according to UEFI Shell Specification Version 2.2 3.11 "UEFI Shell applications [...] have the same entry point (EFI_IMAGE_ENTRY_POINT) defined in section 4.1 of the UEFI specification".
Looking at the mentioned section the prototype ist defined as:

typedef
EFI_STATUS
(EFIAPI *EFI_IMAGE_ENTRY_POINT) (
  IN EFI_HANDLE                  ImageHandle,
  IN EFI_SYSTEM_TABLE            *SystemTable
  );

Thanks for this hint, I'll fix this.

from shelldynlistprotocols.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.