Re: kernel memory mapping problem

From
Peter Barada <hidden>
Date
2003-08-07 15:01:44
Reply to
ZhongJun Zhou, 2002-02-07
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@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/
Thread (7 messages) 7 messages, 6 authors, last reply 2003-08-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help