Messages in this thread | | | Date | Sat, 18 Mar 2000 22:07:42 +0100 (CET) | From | (Arjan van de Ven) | Subject | Re: 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/
| |