aboutsummaryrefslogtreecommitdiff
blob: 287af0adb64e05914f07b4aa8b2fc16753d0db28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
static long do_peekuser(long offset);

static int trace_errno(long err)
{
	return (err < 0 && err > -4096) ? err * -1 : 0;
}

static long trace_result(void *vregs, int *error)
{
	long sr = trace_raw_ret(vregs);
	*error = trace_errno(sr);
	return *error ? -1 : sr;
}