Page 1 of 1
UEFI and FASM
Posted: Wed Jan 21, 2015 1:57 am
by rdos
Has anybody done an UEFI OS-loader using FASM? I think C is more or less out of the question since I need to switch operating mode, reload GDT, switch to compability-mode and turn off paging. All I need from UEFI is the memory map, video configuration and an ability to select and load a boot-file. Has anybody done something like this with FASM and care to share their code? Is there a decent include file for FASM that covers these functions?
Re: UEFI and FASM
Posted: Wed Jan 21, 2015 2:14 am
by Bender
Did you check out
http://wiki.osdev.org/Uefi.inc
Pretty much of a wrapper over UEFI calls, and it's written for FASM.
I'd rather ask it on the "OS Construction" section of the FASM forum (
http://board.flatassembler.net), there are a lot of people there developing OSes exclusively in FASM, maybe they'll have answers.
Re: UEFI and FASM
Posted: Fri Jan 23, 2015 3:52 am
by feryno
There is no CSM in your UEFI, you can't boot via legacy MBR method?
It is possible to reload new GDT, switch modes, turn off paging, but then you can't access EFI services either disks - you put everything into unusable state.
Re: UEFI and FASM
Posted: Sun Jan 25, 2015 12:23 am
by rdos
feryno wrote:There is no CSM in your UEFI, you can't boot via legacy MBR method?
I can, but I want to be able to boot with UEFI too.
feryno wrote:
It is possible to reload new GDT, switch modes, turn off paging, but then you can't access EFI services either disks - you put everything into unusable state.
I'll do that after collecting the information I need from UEFI.