aboutsummaryrefslogtreecommitdiff
path: root/sim/common/syscall.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-04-18 20:53:03 -0400
committerMike Frysinger <vapier@gentoo.org>2021-04-18 21:22:31 -0400
commit7da5cf78fb1ba3e93cc5e79cf5084bd2b03f0fcf (patch)
tree6b5e493e21e20d52d35e251c11acf48b78919e31 /sim/common/syscall.c
parentd3b0ab8b36319f4232367b046ecfc0c656a177ad (diff)
downloadfsf-binutils-gdb-7da5cf78fb1ba3e93cc5e79cf5084bd2b03f0fcf.zip
fsf-binutils-gdb-7da5cf78fb1ba3e93cc5e79cf5084bd2b03f0fcf.tar.gz
fsf-binutils-gdb-7da5cf78fb1ba3e93cc5e79cf5084bd2b03f0fcf.tar.bz2
sim: syscall: add getpid support
Hoist the Blackfin implementation up to the common one.
Diffstat (limited to 'sim/common/syscall.c')
-rw-r--r--sim/common/syscall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/syscall.c b/sim/common/syscall.c
index fbe8021..f2883c4 100644
--- a/sim/common/syscall.c
+++ b/sim/common/syscall.c
@@ -578,6 +578,10 @@ cb_syscall (host_callback *cb, CB_SYSCALL *sc)
}
break;
+ case CB_SYS_getpid:
+ result = getpid ();
+ break;
+
case CB_SYS_time :
{
/* FIXME: May wish to change CB_SYS_time to something else.