dbug.asl 687 B

12345678910111213141516171819202122232425
  1. /* Debugging */
  2. Scope(\) {
  3. /* Debug Output */
  4. OperationRegion(DBG, SystemIO, 0x0402, 0x01)
  5. Field(DBG, ByteAcc, NoLock, Preserve) {
  6. DBGB, 8,
  7. }
  8. /*
  9. * Debug method - use this method to send output to the QEMU
  10. * BIOS debug port. This method handles strings, integers,
  11. * and buffers. For example: DBUG("abc") DBUG(0x123)
  12. */
  13. Method(DBUG, 1) {
  14. ToHexString(Arg0, Local0)
  15. ToBuffer(Local0, Local0)
  16. Subtract(SizeOf(Local0), 1, Local1)
  17. Store(Zero, Local2)
  18. While (LLess(Local2, Local1)) {
  19. Store(DerefOf(Index(Local0, Local2)), DBGB)
  20. Increment(Local2)
  21. }
  22. Store(0x0a, dbgb)
  23. }
  24. }