Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!amdcad!mozart.amd.com!proton!tim From: tim@proton.amd.com (Tim Olson) Newsgroups: comp.os.minix Subject: Re: mem_copy problem in MM Message-ID: <1990Jun6.154011.29469@mozart.amd.com> Date: 6 Jun 90 15:40:11 GMT References: <21169@nigel.udel.EDU> Sender: usenet@mozart.amd.com (Usenet News) Reply-To: tim@amd.com (Tim Olson) Organization: Advanced Micro Devices, Inc., Austin, Texas Lines: 17 In article <21169@nigel.udel.EDU> minixug!root@nluug.nl (The Master) writes: | Now, I add a system call with format m1, which has a | pointer to a similar structure in user space. The | ptr is in m1_p1. | | Now, when I call this system call with the function: | I get the result "-1", and perror() says "Invalid argument" . All of your code looks correct. However, one possibility is that you didn't correctly add the new system call number to the call_vec table in table.c. If it somehow still points to no_sys (the default for all unimplemented call numbers), then you will end up at the no_sys function in utility.c which (surprise!) returns EINVAL. -- Tim Olson Advanced Micro Devices (tim@amd.com)