Hi, Andrew: Thanks for your reply. What I was trying is to restart my computer after 1 minute shutdown in shell. That is why I need to get .efi file through EDK. The following is the assembly language I wrote in Reboot.asm, and I put this file in BaseLib->Ia32,along with Reboot.asm, Reboot.c. .code Reboot PROC mov al,0bh out 70h,al mov al,20h out 71h,al ;enable RTC interrupt mov al,01h out 70h,al mov al,00h out 71h,al mov al,03h out 70h,al mov al,01h out 71h,al mov al,05h out 70h,al mov al,12h out 71h,al ;wirte cmos alarm mov al,00h out 70h,al mov al,00h out 71h,al mov al,02h out 70h,al mov al,00h out 71h,al mov al,04h out 70h,al mov al,12h out 71h,al ;set cmos time ret Reboot ENDP END
Best regards! 发送自 Windows 10 版邮件应用 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel