updated compile commands json

This commit is contained in:
rami 2024-05-21 23:32:44 -05:00
parent fc1bde4e60
commit 33e53c70b2
6 changed files with 9 additions and 2 deletions

View File

@ -2,6 +2,6 @@
{
"directory": "/home/rami/rk",
"file": "kmain.c",
"command": "i686-elf-gcc -Wall -Wextra -Werror -ffreestanding -I./ -c kmain.c -o build/kmain.o"
"command": "i686-elf-gcc -Wall -Wextra -Werror -ffreestanding -I./include -c kmain.c -o build/kmain.o"
}
]

View File

@ -12,4 +12,6 @@ enum IDE_MODE {
PCI_CAN_SWITCH_BUS_MASTERING = 0x8f,
};
#endif

View File

@ -84,6 +84,10 @@ void kmain(struct multiboot_info *info) {
printf("Found FADT at 0x%x\n", fadt);
if (fadt->Flags & 1)
printf("Legacy devices are supported.\n");
else {
printf("Legacy devices are not supported. I'm too lazy to support modern devices, bye bye.\n");
goto halt;
}
pic_remap(PIC_1_START, PIC_2_START);
// ACPI version 1.0 is so old that we assume that our PC supports the 8042 ps/2 controller
initialize_8042ps2();

View File

@ -48,6 +48,7 @@ ps2_isr:
extern ps2_handler
pushad
cld
and esp, 0xFFFFFFF0
call ps2_handler
popad
iret

2
vga.c
View File

@ -55,7 +55,7 @@ void _putchar(char character) {
set_cursor_pos(next_line);
} else {
video_memory[0] = character;
//video_memory[1] = WHITE_ON_BLACK;
video_memory[1] = WHITE_ON_BLACK;
set_cursor_pos(pos + 1);
}
}