Patchwork [v2,3/6] backdoor: declare host-side backdoor helpers

login
register
mail settings
Submitter =?utf-8?Q?Llu=C3=ADs?=
Date Nov. 4, 2010, 10:35 p.m.
Message ID <20101104223542.16669.57209.stgit@ginnungagap.bsc.es>
Download mbox | patch
Permalink /patch/70177/
State New
Headers show

Comments

=?utf-8?Q?Llu=C3=ADs?= - Nov. 4, 2010, 10:35 p.m.
These helpers must be implemented by the user on "libbackdoor.a".

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
---
 backdoor/helper.h |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 backdoor/helper.h

Patch

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 <vilanova@ac.upc.edu>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+DEF_HELPER_1(backdoor_i8, void, i32);
+DEF_HELPER_2(backdoor_i8_v32, void, i32, i32);