diff --git a/kbd.c b/kbd.c index f4d0b28..f14a299 100644 --- a/kbd.c +++ b/kbd.c @@ -49,7 +49,7 @@ unsigned char keymap[128] = { // Reads one key from the keyboard -void kbd_read_key(struct cpu_reg_state* cpu) { +void kbd_read_key(__attribute__((unused)) struct cpu_reg_state* cpu) { u8 scancode = serial_read_byte(KBD_PORT); if(scancode & 0x80) { // Key released diff --git a/pit.c b/pit.c index 57f031b..3cc40ff 100644 --- a/pit.c +++ b/pit.c @@ -4,7 +4,7 @@ #include "serial.h" #include "stlio.h" -void pit_inc_ticks(struct cpu_reg_state* cpu) { +void pit_inc_ticks(__attribute__((unused)) struct cpu_reg_state* cpu) { pit_timer_ticks++; } diff --git a/scripts/setup.sh b/scripts/setup.sh index 75e73d7..2bab985 100644 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -4,6 +4,14 @@ dpkg -s bochs if [ $? -ne 0 ];then apt install bochs-x -else - echo Nothing to install +fi + +gen=`dpkg --list | grep genisoimage` +if [ -z "$gen" ]; then + sudo apt-get install genisoimage +fi + +nasm=`dpkg --list | grep nasm` +if [ -z "$nasm" ]; then + sudo apt-get install nasm fi diff --git a/shell.c b/shell.c index aa5b252..543f23e 100644 --- a/shell.c +++ b/shell.c @@ -12,7 +12,7 @@ void jmain(void) { " timer: prints out current timer tick\n" " quit: hangs because power management vry hrd\n"); printf("Where's the prompt? \n It literally causes triple faults so its invisible :^)\n" - "_Also the cursor is busted and i don't wanna fix it"); + "_Also the cursor is busted and i don't wanna fix it\n"); while(1) { memset((u8*)line, 0x00, LINE_LENGTH); read(line, LINE_LENGTH);