Implement (half) simple semaphore & mutex lock, and ...
authorMinep <zelong56@gmail.com>
Tue, 3 May 2022 14:22:16 +0000 (15:22 +0100)
committerMinep <zelong56@gmail.com>
Tue, 3 May 2022 14:22:16 +0000 (15:22 +0100)
commita0655e5d30f3cdc73b1aaaa4825d8fae9f92ce4a
treea0cd9007f340c9e7dfd7909bc44a8a6adf20cc3d
parent9440be3a5115a91dcdf8dff05a361cac4b6cea29
Implement (half) simple semaphore & mutex lock, and ...
Use vga cursor.
Address the issue of spurious IRQ#1 which interference key hanlder when receiving the command response byte.
Refactoring and commentings.
lunaix-os/includes/lunaix/ds/mutex.h [new file with mode: 0644]
lunaix-os/includes/lunaix/ds/semaphore.h [new file with mode: 0644]
lunaix-os/includes/lunaix/keyboard.h
lunaix-os/includes/lunaix/peripheral/ps2kbd.h
lunaix-os/includes/lunaix/tty/tty.h
lunaix-os/kernel/ds/semaphore.c [new file with mode: 0644]
lunaix-os/kernel/k_main.c
lunaix-os/kernel/mm/kalloc.c
lunaix-os/kernel/peripheral/ps2kbd.c
lunaix-os/kernel/tty/tty.c