diff options
Diffstat (limited to 'linux/arc/set_error.c')
-rw-r--r-- | linux/arc/set_error.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/arc/set_error.c b/linux/arc/set_error.c new file mode 100644 index 000000000..3cb0a6b10 --- /dev/null +++ b/linux/arc/set_error.c @@ -0,0 +1,6 @@ +static int +arch_set_error(struct tcb *tcp) +{ + arc_regs.scratch.r0 = -tcp->u_error; + return set_regs(tcp->pid); +} |