To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 2160
    Re: legOS ... really a stack question —Ben Laurie
   (...) Hmmm ... good point. 0xf000 is memory mapped I/O for the motors, IIRC. Not sure whats above there, but I wouldn't be surprised to hear it isn't a good place to store things. I'd guess that setting the stack to 0xeffe should be equally good. (...) (26 years ago, 2-Jan-99, to lugnet.robotics)
   
        Re: legOS ... really a stack question —Kekoa Proudfoot
   (...) All off-chip accesses to f000 or higher are memory mapped to the motors. Because accesses to addresses above fb7f are all on-chip or invalid, the motors are effectively memory mapped to f000-fb7f. (...) What are your symptoms again? One (...) (26 years ago, 2-Jan-99, to lugnet.robotics)
   
        RE: legOS ... really a stack question —Allen Martin
     (...) .bss also contains global data initialized to 0, which is even worse if it's not cleared. -Allen -- Did you check the web site first?: (URL) (26 years ago, 2-Jan-99, to lugnet.robotics)
    
         RE: legOS ... really a stack question —John A. Tamplin
     (...) Good point, I will add the code to clear it to my crt0.s before calling constructors: mov.w #__bss,r2 mov.w #__end,r3 sub.b r0l,r0l cmp.w r3,r2 bhs .Lbss_done .Lmore_bss: mov.b r0l,@r2 adds #1,r2 cmp.w r3,r2 blo .Lmore_bss .Lbss_done: ... John (...) (26 years ago, 3-Jan-99, to lugnet.robotics)
   
        Re: legOS ... really a stack question —Ben Laurie
   (...) Changing globals to statics causes crashes. Cheers, Ben. -- "My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition (...) (26 years ago, 3-Jan-99, to lugnet.robotics)
   
        Re: legOS ... really a stack question —Kekoa Proudfoot
   (...) Strange that this is the case, since I'm pretty sure both are handled identically, except possibly for the ordering of such variables in memory. My guess is that some unrelated bug is causing your problems. -Kekoa (25 years ago, 4-Jan-99, to lugnet.robotics)
   
        Re: legOS ... really a stack question —Ben Laurie
   (...) The point appears to be that statics end up somewhere completely different from globals in the memory map - so I agree that it is probably an unrelated bug that is revealed by changing the memory map. As it happens, because of alignment, the (...) (25 years ago, 5-Jan-99, to lugnet.robotics)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR