Got basic tty driver & implemented Stack Smash Protector

This commit is contained in:
2025-02-17 21:02:10 +01:00
parent 983174a081
commit f9dece59ce
8 changed files with 114 additions and 24 deletions
+6 -4
View File
@@ -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