-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel+userland: refactor initialization
- Loading branch information
Showing
29 changed files
with
350 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "console.h" | ||
|
||
void serial_console_init(void); | ||
void fb_console_init(void); | ||
void system_console_init(void); | ||
|
||
void console_init(void) { | ||
serial_console_init(); | ||
fb_console_init(); | ||
system_console_init(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
#pragma once | ||
|
||
#include <kernel/api/hid.h> | ||
#include <kernel/api/sys/types.h> | ||
#include <stddef.h> | ||
|
||
void fb_console_init(void); | ||
struct inode* fb_console_device_get(void); | ||
void console_init(void); | ||
|
||
void serial_console_init(void); | ||
void serial_console_on_char(uint16_t port, char); | ||
struct inode* serial_console_device_create(uint16_t port); | ||
|
||
void system_console_init(void); | ||
struct inode* system_console_device_get(void); | ||
|
||
void tty_maybe_send_signal(pid_t pgid, char ch); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.