StupidOS/kernel/dev/console.inc

31 lines
379 B
PHP

;; File: console.inc
console_probe:
ret
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