Received: from [140.186.70.92] (port=41438 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PE8P4-0004um-RH for qemu-devel@nongnu.org; Thu, 04 Nov 2010 18:35:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PE8Ow-0002aA-Ba for qemu-devel@nongnu.org; Thu, 04 Nov 2010 18:35:23 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:50229 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PE8Ov-0002a6-UQ for qemu-devel@nongnu.org; Thu, 04 Nov 2010 18:35:22 -0400 From: =?utf-8?b?TGx1w61z?= Date: Thu, 04 Nov 2010 23:35:42 +0100 Message-ID: <20101104223542.16669.57209.stgit@ginnungagap.bsc.es> In-Reply-To: <20101104223452.16669.25092.stgit@ginnungagap.bsc.es> References: <20101104223452.16669.25092.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v2 3/6] backdoor: declare host-side backdoor helpers List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org These helpers must be implemented by the user on "libbackdoor.a". Signed-off-by: Lluís Vilanova --- backdoor/helper.h | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 backdoor/helper.h diff --git a/backdoor/helper.h b/backdoor/helper.h new file mode 100644 index 0000000..d3c19d9 --- /dev/null +++ b/backdoor/helper.h @@ -0,0 +1,21 @@ +/* + * Helpers for instruction-based backdoor communication. + * + * Copyright (c) 2010 Lluís Vilanova + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +DEF_HELPER_1(backdoor_i8, void, i32); +DEF_HELPER_2(backdoor_i8_v32, void, i32, i32);