feat: introduced tasking, added paging (no vm), moved malloc, added
syscalls, other stuff
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include <cpu/timer.h>
|
||||
#include <libc/kprintf.h>
|
||||
#include <fs/blockdev.h>
|
||||
#include <mem/mem.h>
|
||||
#include <mem/malloc.h>
|
||||
|
||||
#define ATA_SR_BSY 0x80 // Busy
|
||||
#define ATA_SR_DRDY 0x40 // Drive ready
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#include <drivers/ports.h>
|
||||
#include <cpu/isr.h>
|
||||
#include <libc/ringqueue.h>
|
||||
#include <mem/mem.h>
|
||||
#include <libk.h>
|
||||
#include <mem/malloc.h>
|
||||
|
||||
|
||||
const char scancode_map_lowercase[] = {
|
||||
@@ -119,7 +119,7 @@ void publish_key_event(unsigned char scan_code) {
|
||||
ring_buffer_put(keyboard_event_buffer, &event);
|
||||
}
|
||||
|
||||
static void keyboard_callback(registers_t regs) {
|
||||
static void keyboard_callback(isr_registers_t *regs) {
|
||||
unsigned char status = port_byte_in(PORT_PS2_STATUS);
|
||||
// check if data available
|
||||
if ((status & 0b00000001) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user