Re-enabled interrupts from keyboard, Enabled and configured the PIT to throw interrupts at a regular interval
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
#include "io.h"
|
||||
#define PORT 0x3f8
|
||||
static int init_serial() {
|
||||
printf("Init serial\n");
|
||||
outb(PORT + 1, 0x00); // Disable all interrupts
|
||||
outb(PORT + 3, 0x80); // Enable DLAB (set baud rate divisor)
|
||||
outb(PORT + 0, 0x03); // Set divisor to 3 (lo byte) 38400 baud
|
||||
|
Reference in New Issue
Block a user