UEFI的基础应用——编写HelloWorld APP
一、代码准备
经过之前的尝试,已经在win10环境下搭建了UEFI开发环境,今天尝试在UEFI下编写一个简单的HelloWorld APP。
编写C:edk2\OvmfPkg\HelloWorld\HelloWorld.c文件
在edk2\OvmfPkg\创建HelloWorld文件夹,HelloWorld.c代码为:
#include <Uefi.h>
#include <Library/UefiLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/UefiBootServicesTableLib.h>
//ShellCEntryLib