r/gnu • u/futuranth • Apr 30 '24
[GRUB] If a kernel is just an ELF exsecutable whose entry point is a C function, can I pass arguments to the function?
5
Upvotes
r/gnu • u/futuranth • Apr 30 '24
7
u/gordonmessmer May 01 '24
Do you mean, "can the boot loader set a register which the kernel can read when it starts?" Because that is how "arguments" like the kernel command line are passed. So, yes.