kernel memory mapping problem

Peter Barada pbarada at mail.wm.sps.mot.com
Fri Aug 8 01:01:44 EST 2003


>when run this module( lsmod mymodule.o ), kernel is always dead. Are
>there any errors of this function ?
>
>Any help is appreciated!

What are you doing with the physical address of a varaible that is on
the *stack*?  If you let some hardware modify that value, then you can
easily trash your stack if the hardware modifies this value *after*
this function exits since tmp will go out of scope.

I'd suggest that you move tmp outside of func for starters.

--
Peter Barada                             Peter.Barada at motorola.com
Wizard                                   781-852-2768 (direct)
WaveMark Solutions(A Motorola Company)   781-270-0193 (fax)

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list