> I want to load the precompile kqemu modul on my
> solaris 5.10 3/05, but this dont work.
> 
> DMESG (same output on boot screen)
> ---
> Dec  6 17:21:44 mrhbit18 genunix: [ID 819705 kern.notice] 
> /usr/kernel/drv/kqemu: undefined symbol
> Dec  6 17:21:44 mrhbit18 genunix: [ID 819705 kern.notice] 
> /usr/kernel/drv/kqemu: undefined symbol
> Dec  6 17:21:44 mrhbit18 genunix: [ID 472681 kern.notice] WARNING: mod_load: 
> cannot load module 'kqemu'


Hmm, what are the undefined symbols that the kernel is complaining about?

atomic_inc_uint and atomic_dec_uint ?

These do not exist with S10FCS.  The following change to the
kqemu-solaris.c module seems to fix this problem:

% gdiff  ../kqemu-osol-1.3.0pre9/kqemu-solaris.c kqemu-solaris.c 
54c54
< static uint_t kqemu_busy = 0;
---
> static uint32_t kqemu_busy = 0;
73c73
< static uint_t upages_locked = 0;
---
> static uint32_t upages_locked = 0;
102c102
<               atomic_inc_uint(&upages_locked);
---
>               atomic_add_32(&upages_locked, 1);
141c141
<               atomic_inc_uint(&upages_locked);
---
>               atomic_add_32(&upages_locked, 1);
158c158
<       atomic_dec_uint(&upages_locked);
---
>       atomic_add_32(&upages_locked, -1);
626c626
<               atomic_inc_uint(&kqemu_busy);
---
>               atomic_add_32(&kqemu_busy, 1);
642c642
<               atomic_dec_uint(&kqemu_busy);
---
>               atomic_add_32(&kqemu_busy, -1);
--
This message posted from opensolaris.org

Reply via email to