From: Ben Pfaff Date: Wed, 1 Feb 2006 20:58:50 +0000 (+0000) Subject: Attempting to pass command-line arguments before they've been X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5779c099854ef6a635613c0dc9c7ea1cff6288dc;p=pintos-anon Attempting to pass command-line arguments before they've been implemented will fail. Thanks to Josh Wiseman for pointing this out. --- diff --git a/doc/userprog.texi b/doc/userprog.texi index 7512384..880fe46 100644 --- a/doc/userprog.texi +++ b/doc/userprog.texi @@ -468,6 +468,11 @@ in @func{setup_stack}. That will work for any test program that doesn't examine its arguments, although its name will be printed as @code{(null)}. +Until you implement argument passing, you should only run programs +without passing command-line arguments. Attempting to pass arguments to +a program will include those arguments in the name of the program, which +will probably fail. + @item User memory access (@pxref{Accessing User Memory}). All system calls need to read user memory. Few system calls need to write to user