Uefi.inc: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
m →Hello World from UEFI: fixed string to be wide characters as per forum post |
m Reformat, mark as lovecraftian |
||
Line 1:
{{Lovecraftian}}
* provide user input interface
Line 7:
It is not intend to be an universal UEFI library.
This shows how to import and use the library.
<source lang="asm">
Line 35:
</source>
Please note that these are only tutorials. They focus on a specific topic only. They do not allocate buffers they use for example. You'll have to write that part on your own.
They were written for those who wants to roll their own UEFI boot loader in assembly. I hope it will save them some sleepless nights and headaches.
<source lang="asm">
@@: uefi_call_wrapper ConIn, ReadKeyStroke, ConIn, key
Line 50:
</source>
<source lang="asm">
mov dword [memmapdescsize], 48
Line 72:
Note that memmapkey is needed for ExitBootServices. If you use memory allocation or free, you'll have to query again map to get a valid key.
<source lang="asm">
; query device handles
Line 123:
</source>
<source lang="asm">
mov rax, qword [bootdiskblkio]
Line 151:
</source>
<source lang="asm">
; installation check on GOP. This must return buffer too small if GOP supported
Line 274:
</source>
And finally the library that makes the magic alive:
<source lang="asm">
|