MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / handle_debug

Method handle_debug

devices/src/legacy/uart_pl011.rs:333–363  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

331 }
332
333 fn handle_debug(&self) {
334 let elapsed = self.timestamp.elapsed();
335
336 match self.debug {
337 0x00..=0x1f => warn!(
338 "[Debug I/O port: Firmware code: 0x{:x}] {}.{:>06} seconds",
339 self.debug,
340 elapsed.as_secs(),
341 elapsed.as_micros()
342 ),
343 0x20..=0x3f => warn!(
344 "[Debug I/O port: Bootloader code: 0x{:x}] {}.{:>06} seconds",
345 self.debug,
346 elapsed.as_secs(),
347 elapsed.as_micros()
348 ),
349 0x40..=0x5f => warn!(
350 "[Debug I/O port: Kernel code: 0x{:x}] {}.{:>06} seconds",
351 self.debug,
352 elapsed.as_secs(),
353 elapsed.as_micros()
354 ),
355 0x60..=0x7f => warn!(
356 "[Debug I/O port: Userspace code: 0x{:x}] {}.{:>06} seconds",
357 self.debug,
358 elapsed.as_secs(),
359 elapsed.as_micros()
360 ),
361 _ => {}
362 }
363 }
364
365 fn trigger_interrupt(&mut self) -> result::Result<(), io::Error> {
366 self.irq.trigger(0)

Callers 1

handle_writeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected