_impure_ptr
"David Eicher" <[email protected]>
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <[email protected]> |
I think _sinit may run if we can get the _RENT structure set up right.
Apparently there is suppose to be a pointer called _impure_ptr which is
suppose to point to a _reent structure which is used to make all these
library routines reentrant. When I run printf the _impure_ptr is accessed
(actually right after printf calls vfprintf), the pointer value is read and
used by vfprintf. The pointer value is 0x40. So the code soon tries to read
a field of the _reent structure at location 0x40 which is flash memory and
all FFFFFFFs. So the _REENT data is invalid. It isn't long before vfprintf
crashes as a result of this.
I'm not sure how the _impure_ptr gets initialized. Does anyone know? If I
can figure that out (next task), I can probably figure out what to change to
fix it.
Thanks,
Dave
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hehj19p/M=362329.6886308.7839368.1510227/D=groups/S=1706554205:TM/Y=YAHOO/EXP=1124435700/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~->
-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MPC500/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/