Limine Bare Bones: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
[unchecked revision][unchecked revision]
(Build system backports from limine-c-template)
mNo edit summary
Line 15:
===Overview===
 
For this example, we will create these 2 files andto place them increate the samebasic directory tree of our project:
* src/kernel.c
* linker.ld
 
As one may notice, there is no "entry point" assembly stub, as one is not necessary with the Limine protocol when using a language which can make use of a standard SysV x86 [[Calling Conventions|calling convention]].
 
Furthermore, we will download the header file '''limine.h''' which defines structures and constants that we will use to interact with the bootloader from [https://github.com/limine-bootloader/limine/raw/trunk/limine.h here], and place it in the same'''src''' directory as the other files.
 
Obviously, this is just a bare bones example, and one should always refer to the [https://github.com/limine-bootloader/limine/blob/trunk/PROTOCOL.md Limine protocol specification] for more details and information.
 
===src/kernel.c===
 
This is the kernel "main".
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu