Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: CVS commit: src/share/mk



   
   Also, for cross-lkm calls, we'll end up using the trampolines, won't we?
   While they are uncommon now, if we went with an aggressive lkm'd kernel,
   it might be a performance impact.


i wouldn't call it uncommon now.  eg, my main use of LKM's is emulations
which always involves loading several depedant ones.  my script for sparc64
to load everything looks like:


cd /usr/lkm
modload -S -d -v -A '/netbsd -T ld.script' exec_elf.o
modload -S -d -v -A '/netbsd -T ld.script' compat_netbsd32.o
modload -S -d -v -A '/netbsd -R compat_netbsd32 -T ld.script' 
exec_netbsd32_aout.o
modload -S -d -v -A '/netbsd -R compat_netbsd32 -R exec_elf -T ld.script' 
exec_netbsd32_elf.o
modload -S -d -v -A '/netbsd -R compat_netbsd32 -T ld.script' compat_sunos32.o
modload -S -d -v -A '/netbsd -R compat_netbsd32 -R exec_netbsd32_aout -R 
compat_sunos32 -T ld.script' exec_sunos32_aout.o
modload -S -d -v -A '/netbsd -T ld.script' compat_svr4.o
modload -S -d -v -A '/netbsd -R compat_svr4 -R compat_netbsd32 -T ld.script' 
compat_svr4_32.o
modload -S -d -v -A '/netbsd -R compat_svr4 -R compat_netbsd32 -R exec_elf -R 
compat_svr4_32 -T ld.script' exec_svr4_32_elf.o
modload -S -d -v -A '/netbsd -R compat_svr4 -T ld.script' exec_svr4_elf.o



note the -A hack :-)  the biggest dependancy here is svr4_32 - it needs
exec_elf (normal [32bit] elf exec module), compat_netbsd32 (netbsd32
compat module), compat_svr4 (64 bit svr4 compat module), comat_svr4_32
(32 bit svr4 compat module for 64 bit platform) and finally
exec_svr4_32_elf.o (elf32 exec module for 64 bit platform).


i will be VERY GLAD when someone implements an in-kernel linker, or
even just /dev/ksyms, so all the -R crap can go away...



.mrg.



Home | Main Index | Thread Index | Old Index