From: Marcus Better <marcus@better.se>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] skas3 patch breaks ATI video drivers
Date: Tue, 25 Jan 2005 11:55:58 +0100 [thread overview]
Message-ID: <41F625BE.6050900@better.se> (raw)
In-Reply-To: <200501251101.26981.blaisorblade@yahoo.it>
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 */
//...<snip>...
#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
next prev parent reply other threads:[~2005-01-25 10:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-24 19:43 [uml-devel] skas3 patch breaks ATI video drivers Marcus Better
2005-01-24 20:13 ` Blaisorblade
2005-01-25 8:35 ` Marcus Better
2005-01-25 10:01 ` Blaisorblade
2005-01-25 10:55 ` Marcus Better [this message]
2005-01-25 11:21 ` Blaisorblade
[not found] ` <41FA4919.1040705@better.se>
2005-01-28 15:52 ` Blaisorblade
2005-01-26 10:24 ` [uml-devel] " Sven Köhler
2005-01-26 12:24 ` Blaisorblade
2005-01-28 15:55 ` [uml-devel] " Blaisorblade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41F625BE.6050900@better.se \
--to=marcus@better.se \
--cc=blaisorblade@yahoo.it \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox