summaryrefslogtreecommitdiffstats
path: root/runtime/autoconf-regset.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/autoconf-regset.c')
-rw-r--r--runtime/autoconf-regset.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/autoconf-regset.c b/runtime/autoconf-regset.c
new file mode 100644
index 00000000..9d994b03
--- /dev/null
+++ b/runtime/autoconf-regset.c
@@ -0,0 +1,7 @@
+#include <linux/regset.h>
+
+int foobar(int n) {
+ const struct user_regset_view *rsv = task_user_regset_view(current);
+ const struct user_regset *rs = & rsv->regsets[0];
+ return rsv->n + n + (rs->get)(current, rs, 0, 0, NULL, NULL);
+}