Limine Bare Bones: Difference between revisions

Jump to navigation Jump to search
Use base revision 1
[unchecked revision][unchecked revision]
(document the process of getting x86_64-elf-gcc from homebrew on macOS)
(Use base revision 1)
Line 32:
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <limine.h>
 
// Set the base revision to 1, this is recommended as this is the latest
// base revision described by the Limine boot protocol specification.
// See specification for further info.
 
LIMINE_BASE_REVISION(1)
 
// The Limine requests can be placed anywhere, but it is important that
// the compiler does not optimise them away, so, usuallyin C, they should
// NOT be made volatile or equivalent"static".
 
static volatile struct limine_framebuffer_request framebuffer_request = {
.id = LIMINE_FRAMEBUFFER_REQUEST,
.revision = 0
Line 112 ⟶ 119:
// linker script accordingly.
void _start(void) {
// Ensure the bootloader actually understands our base revision (see spec).
if (LIMINE_BASE_REVISION_SUPPORTED == false) {
hcf();
}
 
// Ensure we got a framebuffer.
if (framebuffer_request.response == NULL
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu