theseus-os / Theseus

Theseus is a modern OS written from scratch in Rust that explores 𝐢𝐧𝐭𝐫𝐚𝐥𝐢𝐧𝐠𝐮𝐚𝐥 𝐝𝐞𝐬𝐢𝐠𝐧: closing the semantic gap between compiler and hardware by maximally leveraging the power of language safety and affine types. Theseus aims to shift OS responsibilities like resource management into the compiler.
https://www.theseus-os.com/
MIT License
2.85k stars 170 forks source link

PS2 keyboard doesn't work properly in default VirtualBox environment #373

Closed kevinaboos closed 1 year ago

kevinaboos commented 3 years ago

There's probably an issue with the ps2 crate and how its initialization routine works.

Relevant log excerpts:

[I] kernel/ps2/src/lib.rs:92: ps2 controller test pass!!!
[I] kernel/ps2/src/lib.rs:101: first ps2 port test pass!!!
[I] kernel/ps2/src/lib.rs:114: first ps2 port interrupt enabled
[W] kernel/ps2/src/lib.rs:121: first ps2 data port disabled
[I] kernel/keyboard/src/lib.rs:48: MF2 Keyboard with translator enabled in PS/2 Controller
[I] kernel/ps2/src/lib.rs:160: ps2 controller test pass!!!
[I] kernel/ps2/src/lib.rs:168: second ps2 port test pass!!!
[I] kernel/ps2/src/lib.rs:180: second ps2 port interrupt enabled
[I] kernel/ps2/src/lib.rs:185: second ps2 data port enabled
[I] kernel/mouse/src/lib.rs:39: the initial mouse ID is: 4

with this line being the key:

[W] kernel/ps2/src/lib.rs:121: first ps2 data port disabled
kevinaboos commented 1 year ago

Fixed in #884