diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2013-06-07 15:46:23 +0200 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-06-14 18:19:26 +0200 |
commit | 00cc7f4355ca1bdd621d4618f24f3336b29463cb (patch) | |
tree | 4dbd332fef5a39b55fb95d424e8a5e712ff48ed5 /src/mainboard/emulation/qemu-i440fx/acpi/dbug.asl | |
parent | e49679d5a1e6a6225980a9ae8455fef47e56ab12 (diff) | |
download | coreboot-00cc7f4355ca1bdd621d4618f24f3336b29463cb.tar.gz coreboot-00cc7f4355ca1bdd621d4618f24f3336b29463cb.tar.bz2 coreboot-00cc7f4355ca1bdd621d4618f24f3336b29463cb.zip |
qemu: move i440fx bits
Prepare tree for adding q35 support:
Move emulation/qemu-x86 to emulation/qemu-i440fx.
Rename some stuff to include 'i440fx'.
Change-Id: Ib8c58175c5734cfcda1b22404ef52c09d38f0462
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-on: http://review.coreboot.org/3429
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx/acpi/dbug.asl')
-rw-r--r-- | src/mainboard/emulation/qemu-i440fx/acpi/dbug.asl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/acpi/dbug.asl b/src/mainboard/emulation/qemu-i440fx/acpi/dbug.asl new file mode 100644 index 000000000000..276321f61787 --- /dev/null +++ b/src/mainboard/emulation/qemu-i440fx/acpi/dbug.asl @@ -0,0 +1,26 @@ +/**************************************************************** + * Debugging + ****************************************************************/ + +Scope(\) { + /* Debug Output */ + OperationRegion(DBG, SystemIO, 0x0402, 0x01) + Field(DBG, ByteAcc, NoLock, Preserve) { + DBGB, 8, + } + + /* Debug method - use this method to send output to the QEMU + * BIOS debug port. This method handles strings, integers, + * and buffers. For example: DBUG("abc") DBUG(0x123) */ + Method(DBUG, 1) { + ToHexString(Arg0, Local0) + ToBuffer(Local0, Local0) + Subtract(SizeOf(Local0), 1, Local1) + Store(Zero, Local2) + While (LLess(Local2, Local1)) { + Store(DerefOf(Index(Local0, Local2)), DBGB) + Increment(Local2) + } + Store(0x0A, DBGB) + } +} |