[lkml]   [2000]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] Wine speedup through kernel module
Well, I implemented the syscall last night... I decided it was too hard to do
a generic syscall handler without writing lots of non-portable assembly to do
one of the following (to deal with module reference counting):

(1) have a function that concocts a syscall 'thunk'
- needs to either transfer the syscall parameters or fiddle the return
address and jump to the handler
- the latter is hard as the syscall can be called from more than one
place in entry.S

(2) modify the syscall table layout and the syscall entry code
- this is obviously a major piece of work and would affect all

Unpleasant either way. I think (1) would probably be the easiest and certainly
the least impact... it just requires providing different thunk writing code on
each arch.

Anyway, for the moment, I decided on a simple dedicated stub in the kernel
proper... This allows me to do reference counting by way of doing a get on the
fd that points to the handle map, thus retaining the existence of the struct
file, which then retains the module in memory.

It all seemed to work, then I removed the printk's, ran a quick check and
guess what... it oopsed! Typical. So I'll have to let you have the code this
evening or tomorrow when I've squashed the bug.

David Howells
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:38    [W:0.042 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site