Compare commits
2 Commits
ccaa5db1f5
...
8da8bdc51a
Author | SHA1 | Date | |
---|---|---|---|
8da8bdc51a | |||
8b3c4477eb |
@ -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 -hda #{uefi_env.expand("^/efi-loader.img")}]
|
sh %W[qemu-system-x86_64 -bios OVMF.fd -drive file=#{uefi_env.expand("^/efi-loader.img")},format=raw]
|
||||||
end
|
end
|
||||||
|
@ -9,6 +9,8 @@ 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