From 7da5cf78fb1ba3e93cc5e79cf5084bd2b03f0fcf Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 18 Apr 2021 20:53:03 -0400 Subject: sim: syscall: add getpid support Hoist the Blackfin implementation up to the common one. --- sim/common/syscall.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sim/common/syscall.c') 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. -- cgit v1.1