mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Got basic tty driver & implemented Stack Smash Protector
This commit is contained in:
@@ -2,13 +2,15 @@
|
||||
#define _TTY_H
|
||||
|
||||
/* VGA Text mode */
|
||||
#define VGA_ATTR(_fg, _bg) ((_fg) | ((_bg) << 4)
|
||||
#define VGA_WIDTH 80
|
||||
#define VGA_HEIGHT 25
|
||||
#define VGA_MEMORY 0xb8000
|
||||
|
||||
int tty_init(void);
|
||||
int tty_write(char* buf, size_t len);
|
||||
int tty_putc(char c);
|
||||
int tty_puts(char* s);
|
||||
void tty_init(void);
|
||||
void tty_clear(void);
|
||||
void tty_setattr(uint8_t attr);
|
||||
void tty_putc(char c);
|
||||
void tty_puts(char* s);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user