Anonymous user
Limine Bare Bones: Difference between revisions
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,
// NOT be made
.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
|