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",
|
"directory": "/home/rami/rk",
|
||||||
"file": "kmain.c",
|
"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,
|
PCI_CAN_SWITCH_BUS_MASTERING = 0x8f,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#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);
|
printf("Found FADT at 0x%x\n", fadt);
|
||||||
if (fadt->Flags & 1)
|
if (fadt->Flags & 1)
|
||||||
printf("Legacy devices are supported.\n");
|
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);
|
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
|
// ACPI version 1.0 is so old that we assume that our PC supports the 8042 ps/2 controller
|
||||||
initialize_8042ps2();
|
initialize_8042ps2();
|
||||||
|
|
|
@ -48,6 +48,7 @@ ps2_isr:
|
||||||
extern ps2_handler
|
extern ps2_handler
|
||||||
pushad
|
pushad
|
||||||
cld
|
cld
|
||||||
|
and esp, 0xFFFFFFF0
|
||||||
call ps2_handler
|
call ps2_handler
|
||||||
popad
|
popad
|
||||||
iret
|
iret
|
||||||
|
|
2
vga.c
2
vga.c
|
@ -55,7 +55,7 @@ void _putchar(char character) {
|
||||||
set_cursor_pos(next_line);
|
set_cursor_pos(next_line);
|
||||||
} else {
|
} else {
|
||||||
video_memory[0] = character;
|
video_memory[0] = character;
|
||||||
//video_memory[1] = WHITE_ON_BLACK;
|
video_memory[1] = WHITE_ON_BLACK;
|
||||||
set_cursor_pos(pos + 1);
|
set_cursor_pos(pos + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user