From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1CtOMh-000622-MB for user-mode-linux-devel@lists.sourceforge.net; Tue, 25 Jan 2005 02:56:07 -0800 Received: from mxfep01.bredband.com ([195.54.107.70]) by sc8-sf-mx2.sourceforge.net with esmtp (Exim 4.41) id 1CtOMf-0006rR-Uj for user-mode-linux-devel@lists.sourceforge.net; Tue, 25 Jan 2005 02:56:07 -0800 Message-ID: <41F625BE.6050900@better.se> From: Marcus Better MIME-Version: 1.0 Subject: Re: [uml-devel] skas3 patch breaks ATI video drivers References: <41F54FE9.7060503@better.se> <200501242113.16569.blaisorblade@yahoo.it> <41F604BA.30008@better.se> <200501251101.26981.blaisorblade@yahoo.it> In-Reply-To: <200501251101.26981.blaisorblade@yahoo.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-admin@lists.sourceforge.net Errors-To: user-mode-linux-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: The user-mode Linux development list List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue, 25 Jan 2005 11:55:58 +0100 To: Blaisorblade Cc: user-mode-linux-devel@lists.sourceforge.net Blaisorblade wrote: > *strange* that a kernel module uses the "_syscall" macro to do a syscall with > "int 0x80" while already being in kernelspace... It's interesting that the module contains the following code: ------------------------ //#define FGL_USE_SCT /* for developer use only */ //...... #ifdef FGL_USE_SCT // get direct function pointers from sys_call_table for calling #else /* FGL_USE_SCT */ // call functions indirectly by using the syscall macros, // entrypoints get defined by below constructs #if !defined(__ia64__) // the macros do use errno variable static int errno; #endif // __ia64__ // int mlock(const void *addr, size_t len); _syscall2(int, mlock, const void *, addr, size_t, len ) // int munlock(const void *addr, size_t len); _syscall2(int, munlock, const void *, addr, size_t, len ) #if !defined(__ia64__) #if !defined(__x86_64__) // TODO: ia64 // int modify_ldt(int func, void *ptr, unsigned long bytecount); _syscall3( int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount ) #endif #endif #endif /* FGL_USE_SCT */ -------------------------- I actually tried to #define FGL_USE_SCT, but it didn't compile either. ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel