Limine Bare Bones: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
mNo edit summary |
Since the Limine terminal is deprecated, don't use it. |
||
Line 38:
// be made volatile or equivalent.
static volatile struct
.id =
.revision = 0
};
Line 98:
return 0;
}▼
}
Line 121 ⟶ 112:
// linker script accordingly.
void _start(void) {
// Ensure we got a
if (
||
hcf();
}
// Fetch the first framebuffer.
struct limine_framebuffer *framebuffer = framebuffer_request.response->framebuffers[0];
// Note: we assume the framebuffer model is RGB with 32-bit pixels.
for (size_t i = 0; i < 100; i++) {
uint32_t *fb_ptr = framebuffer->address;
fb_ptr[i * (framebuffer->pitch / 4) + i] = 0xffffff;
▲ }
// We're done, just hang...
Line 139 ⟶ 132:
</source>
===linker.ld===
Line 442 ⟶ 433:
==Conclusions==
If everything above has been completed successfully, you should now have a bootable ISO or hard drive/USB image containing your 64-bit higher half Limine protocol-compliant kernel and Limine to boot it. Once the kernel is successfully booted, you should see
== See Also ==
|