Browse Source

video_init return value

master
Mathieu Serandour 6 months ago
parent
commit
1280ab3e5d
  1. 4
      kernel/early_video.c
  2. 3
      kernel/early_video.h

4
kernel/early_video.c

@ -6,7 +6,7 @@
typedef struct framebuffer_dev fd_t;
void video_init(
driver_t* video_init(
const struct stivale2_struct_tag_framebuffer* framebuffer_tag
) {
@ -30,7 +30,7 @@ void video_init(
register_dev((struct dev *)fb_dev);
driver_register_and_install(
return driver_register_and_install(
(int (*)(struct driver*))
terminal_install,
(struct dev *)fb_dev

3
kernel/early_video.h

@ -1,3 +1,4 @@
#pragma once
void video_init(const struct stivale2_struct_tag_framebuffer*);
// return the terminal driver
struct driver* video_init(const struct stivale2_struct_tag_framebuffer*);
Loading…
Cancel
Save