mirror of
https://github.com/cowmonk/cowos.git
synced 2025-10-27 22:43:26 +00:00
framebuffer driver and a working gdt
This commit is contained in:
parent
49bf45abc8
commit
4a304f7b63
9 changed files with 761 additions and 40 deletions
31
kernel/include/limine_requests.h
Normal file
31
kernel/include/limine_requests.h
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#ifndef LIMINE_REQUESTS_H
|
||||
#define LIMINE_REQUESTS_H
|
||||
|
||||
#include "limine.h"
|
||||
|
||||
// Only define once to avoid duplicates (result: kernel panic)
|
||||
#ifdef DEFINE_LIMINE_REQUESTS
|
||||
|
||||
__attribute__((used, section(".limine_requests")))
|
||||
volatile LIMINE_BASE_REVISION(3);
|
||||
|
||||
__attribute__((used, section(".limine_requests")))
|
||||
volatile struct limine_framebuffer_request framebuffer_request = {
|
||||
.id = LIMINE_FRAMEBUFFER_REQUEST,
|
||||
.revision = 0
|
||||
};
|
||||
|
||||
__attribute__((used, section(".limine_requests_start")))
|
||||
volatile LIMINE_REQUESTS_START_MARKER
|
||||
|
||||
__attribute__((used, section(".limine_requests_end")))
|
||||
volatile LIMINE_REQUESTS_END_MARKER;
|
||||
|
||||
#else
|
||||
|
||||
// External declaration for other files
|
||||
extern volatile struct limine_framebuffer_request framebuffer_request;
|
||||
|
||||
#endif
|
||||
|
||||
#endif // LIMINE_REQUESTS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue