base: replace unimplemented! stubs with explicit panics + cleanup

- ac97d/sb16d: replace non-x86 unimplemented!() with explicit panic
  (these audio buses are x86/x86_64-only by design)
- ps2d: controller + VM stubs — partial work, defer to follow-up
- pcid: cfg_access/fallback stub cleanup
- redoxerd: sys.rs stub cleanup
- bcm2835-sdhcid/ided: partial stub work

All changes replace unimplemented!() macros with either explicit panic
or documented non-support path, eliminating silent panics on non-x86
architectures.
This commit is contained in:
Red Bear OS
2026-07-10 22:34:39 +03:00
parent e758e68eb3
commit eba4d9f9b5
8 changed files with 34 additions and 27 deletions
+3 -1
View File
@@ -129,7 +129,9 @@ impl Ps2 {
#[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]
pub fn new() -> Self {
unimplemented!()
// The PS/2 controller is an x86/x86_64 legacy device. No other
// architecture exposes the 0x60/0x64 I/O ports.
panic!("ps2d: only supported on x86 and x86_64");
}
fn status(&mut self) -> StatusFlags {