StupidOS/kernel/dev/console.inc
2024-07-18 11:28:07 +02:00

28 lines
359 B
PHP

;; File: console.inc
console_write:
mov eax, uConsoleLock
call lock_acquire
mov eax, uConsoleLock
call lock_release
ret
console_read:
mov eax, uConsoleLock
call lock_acquire
mov eax, uConsoleLock
call lock_release
ret
console_init:
ret
console_device:
db 'console', 0
dd console_init
dd console_write
dd console_write
uConsoleLock dd 0