From patchwork Tue Oct 19 19:22:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [02/18] backdoor: Declare host-side backdoor helpers Date: Tue, 19 Oct 2010 09:22:13 -0000 From: =?utf-8?Q?Llu=C3=ADs?= X-Patchwork-Id: 68940 Message-Id: <4fe857c095e80afe422d968daf97f3ceeba62780.1287772676.git.vilanova@ac.upc.edu> 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..18b53ac --- /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_v, void, i32, tl);