updated compile commands json
This commit is contained in:
parent
fc1bde4e60
commit
33e53c70b2
Binary file not shown.
|
@ -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"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -12,4 +12,6 @@ enum IDE_MODE {
|
|||
PCI_CAN_SWITCH_BUS_MASTERING = 0x8f,
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
|
4
kmain.c
4
kmain.c
|
@ -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();
|
||||
|
|
|
@ -48,6 +48,7 @@ ps2_isr:
|
|||
extern ps2_handler
|
||||
pushad
|
||||
cld
|
||||
and esp, 0xFFFFFFF0
|
||||
call ps2_handler
|
||||
popad
|
||||
iret
|
||||
|
|
Loading…
Reference in New Issue
Block a user