From 7d5c6c43ca8a5dd5491f4a58e977ec5501386ee3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 15 Jun 2015 19:22:38 +0545 Subject: sim: syscall: add common sim_syscall helpers Many ports have the same sim syscall logic, so add some helpers to handle all the common details. The arches still have to deal with the unpacking and packing of the syscall arguments, but the rest of the sim<->callback glue is now shared. --- sim/common/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sim/common/syscall.c') diff --git a/sim/common/syscall.c b/sim/common/syscall.c index 29b73c2..0c37428 100644 --- a/sim/common/syscall.c +++ b/sim/common/syscall.c @@ -240,7 +240,7 @@ cb_syscall (host_callback *cb, CB_SYSCALL *sc) #endif /* wip */ case CB_SYS_exit : - /* Caller must catch and handle. */ + /* Caller must catch and handle; see sim_syscall as an example. */ break; case CB_SYS_open : -- cgit v1.1