lkml.org 
[lkml]   [2000]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.3.99pre2-3: ide_xlate_1024 not linked in
In article <Pine.LNX.4.10.10003180123280.2793-100000@home.suse.com> you wrote:


> Join the crowd........

> The ablity to load msdos.o without ide-mod.o present of compiled
> in.....KABOOM!!!!!!!!!

> Fun, eeh :_((((((((((((

This is a "not very funny" problem indeed.
Potential solution: Have a function-pointer that is always in the kernel.
ide-mod (or non-modular IDE) make that pointer equal to the ide_xlate_1024
functionaddress. And, of course, make it NULL again on module removal.

msdos.o checks this function-pointer and only performs the relevant checks
if the function-pointer is not NULL.

Good:
* "Only" 4 bytes (8 on 64bit platforms) overhead for the kernel

Bad:
* This is a kludge.
* If ide_xlate_1024 is needed for non-IDE as well, this does not work.

Greetings,
Arjan van de Ven

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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