Hi: Thanks for your replies. I referred to some examples in baselib, for example,WriteMsr64.asm, WriteMsr64.nasm, WriteMsr64.c and create Reboot.asm, Reboot.nasm, Reboot.c file in MdePkg->Library->BaseLib-> Ia32. I also made some corresponding Changes in BaseLib.inf and other files. And I did avoid to use X64 arch. So my cmos.c source file in AppPkg is like this: #include<Library/BaseLib.h> Void main() { Reboot(); } But the compiled result is Reboot.lib(Reboot.obj):error LNK2001: ####\DEBUG\cmos.dll:fatal error LINK1120:1
The picture is the compiled result, and I wonder if I missed to create or modify some files? Thanks for helping ! Best Regards! 发送自 Windows 10 版邮件应用 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel