UEFI App Bare Bones: Difference between revisions

[unchecked revision][unchecked revision]
Line 102:
 
Passing '--target x86_64-unknown-windows' to clang tells it to compile for x86_64 "Windows". This is quite not the same as 64-bit UEFI PE yet, but as before the "freestanding" part makes it a good kernel image. An example of this toolchain is found in the [https://github.com/c-util/c-efi c-efi] project.
 
Note the '-mno-red-zone' part we use here too -- it is a [https://stackoverflow.com/questions/25787408/why-cant-kernel-code-use-a-red-zone bad idea] to use a red zone for your kernel code if you are thinking about using interrupts. You should do it with GCC too, but read [[Libgcc without red zone]] for the extra work you need to do.
 
== Creating the FAT image ==
14

edits