Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Oct 2014 19:29:43 +0800
From:      Julian Elischer <julian@freebsd.org>
To:        FreeBSD Current <current@freebsd.org>
Subject:   number of args in a syscall
Message-ID:  <543BB7A7.9080709@freebsd.org>

next in thread | raw e-mail | index | archive | help
I'm faced with porting some code that has patched the 8.0 kernel
to accept up to 16 args in a syscall.
It makes my skin crawl a bit but if I can't give a good reason to
suggest that they do things differently in 10 (pass a pointer to a 
struct maybe)
then I'll just take the easy path and s/8/16/ in
the appropriate line in amd64/include/proc.h and get on with life.

I initially thought it may confuse things like ktrace or truss but I 
haven't seen any problems..
allocating more space on the stack is another thing but you only ever 
do one syscall at a time.

Julian










Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?543BB7A7.9080709>