From 48558c0cd83846aa5460f118e5309ef96e143646 Mon Sep 17 00:00:00 2001 From: xiangli <lixiangwd@gmail.com> Date: Wed, 11 May 2016 00:35:22 -0500 Subject: [PATCH] sbsbsbsbsbssbbssbsb --- student-distrib/keyboard_handler.c | 2 ++ student-distrib/systemcall.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/student-distrib/keyboard_handler.c b/student-distrib/keyboard_handler.c index eebe437..761628e 100644 --- a/student-distrib/keyboard_handler.c +++ b/student-distrib/keyboard_handler.c @@ -203,6 +203,8 @@ void keyboard_handler(void) send_eoi(1); return; } + + //edge case if (scancode != 0x0E && key != '\n' && (key >=' ' && key <= '~') && key!='\0'){ if (key_buff_size[terminal_id] == BUFF_SIZE_LIMIT) diff --git a/student-distrib/systemcall.h b/student-distrib/systemcall.h index 928e6f7..fbc44ec 100644 --- a/student-distrib/systemcall.h +++ b/student-distrib/systemcall.h @@ -59,6 +59,9 @@ int32_t sigreturn(void); void construct_pcb_entries(pcb_t * pcb_pointer, int new_pid); void clear_file_descriptors(); +void play_sound (int freq_number, uint32_t duration); +void alert(); + -- GitLab