Compare commits
No commits in common. "8da8bdc51acdc1b49298a17fdc5f6bec5b18582e" and "ccaa5db1f5c731da56d8a776d84db7e40de60762" have entirely different histories.
8da8bdc51a
...
ccaa5db1f5
@ -34,5 +34,5 @@ uefi_env = env "uefi" do |env|
|
|||||||
end
|
end
|
||||||
|
|
||||||
task "run" do
|
task "run" do
|
||||||
sh %W[qemu-system-x86_64 -bios OVMF.fd -drive file=#{uefi_env.expand("^/efi-loader.img")},format=raw]
|
sh %W[qemu-system-x86_64 -bios OVMF.fd -hda #{uefi_env.expand("^/efi-loader.img")}]
|
||||||
end
|
end
|
||||||
|
@ -9,8 +9,6 @@ void write_string(EFI_SYSTEM_TABLE * st, const(wchar)[] str)
|
|||||||
|
|
||||||
extern (C) EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE * st)
|
extern (C) EFI_STATUS efi_main(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE * st)
|
||||||
{
|
{
|
||||||
st.ConOut.ClearScreen(st.ConOut);
|
|
||||||
|
|
||||||
write_string(st, "Hello, D UEFI world!\r\n"w);
|
write_string(st, "Hello, D UEFI world!\r\n"w);
|
||||||
write_string(st, "Press any key...\r\n"w);
|
write_string(st, "Press any key...\r\n"w);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user