2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License along
13 * with this program; if not, see <http://www.gnu.org/licenses/>.
16 /****************************************************************
18 ****************************************************************/
22 OperationRegion(DBG, SystemIO, 0x0402, 0x01)
23 Field(DBG, ByteAcc, NoLock, Preserve) {
27 /* Debug method - use this method to send output to the QEMU
28 * BIOS debug port. This method handles strings, integers,
29 * and buffers. For example: DBUG("abc") DBUG(0x123) */
31 ToHexString(Arg0, Local0)
32 ToBuffer(Local0, Local0)
33 Subtract(SizeOf(Local0), 1, Local1)
35 While (LLess(Local2, Local1)) {
36 Store(DerefOf(Index(Local0, Local2)), DBGB)