drivers: add flanterm
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
baf8c4c7e5
commit
0592f4d746
15 changed files with 4477 additions and 3 deletions
|
|
@ -37,6 +37,7 @@
|
|||
typedef void (*initcall_t)(void);
|
||||
|
||||
extern initcall_t __initcall_start, __initcall_end;
|
||||
extern void fbcon_init(void);
|
||||
struct tty *tty_printf = NULL;
|
||||
|
||||
bool kernel_init_ready = false;
|
||||
|
|
@ -78,6 +79,8 @@ static void kmain()
|
|||
|
||||
tty_printf = main_tty;
|
||||
|
||||
fbcon_init();
|
||||
|
||||
do_initcalls();
|
||||
|
||||
void arch_ap_startup();
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ REQUEST struct limine_memmap_request memmap_req = {.id = LIMINE_MEMMAP_REQUEST_I
|
|||
REQUEST struct limine_hhdm_request hhdm_req = {.id = LIMINE_HHDM_REQUEST_ID, .revision = 0};
|
||||
REQUEST struct limine_rsdp_request rsdp_req = {.id = LIMINE_RSDP_REQUEST_ID, .revision = 0};
|
||||
REQUEST struct limine_module_request module_req = {.id = LIMINE_MODULE_REQUEST_ID, .revision = 0};
|
||||
REQUEST struct limine_framebuffer_request fb_req = {.id = LIMINE_FRAMEBUFFER_REQUEST_ID, .revision = 0};
|
||||
REQUEST u64 limine_base_revision[] = LIMINE_BASE_REVISION(6);
|
||||
|
||||
REQUEST u64 _limine_requests_end[] = LIMINE_REQUESTS_END_MARKER;
|
||||
|
|
@ -20,6 +21,7 @@ struct limine_memmap_response *kern_map_res = NULL;
|
|||
struct limine_hhdm_response *kern_hhdm_res = NULL;
|
||||
struct limine_rsdp_response *kern_rsdp_res = NULL;
|
||||
struct limine_module_response *module_res = NULL;
|
||||
struct limine_framebuffer_response *fb_res = NULL;
|
||||
|
||||
vaddr_t hhdm_start = 0;
|
||||
|
||||
|
|
@ -30,6 +32,7 @@ void requests_init()
|
|||
kern_hhdm_res = hhdm_req.response;
|
||||
kern_rsdp_res = rsdp_req.response;
|
||||
module_res = module_req.response;
|
||||
fb_res = fb_req.response;
|
||||
|
||||
hhdm_start = kern_hhdm_res->offset;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue