Re: startup.s --> main.c (boot loader problem)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You just have to initialize the stack pointer to use an area of memory that
isn't otherwise used. You can look at your eboot.bib file to see what
memory regions are used by eboot, pick something that doesn't conflict.
Usually, you use an area that is just before or just after the bootloader
RAMIMAGE area, but it could be anywhere.

--
Dean Ramsier - eMVP
BSQUARE Corporation


"waltershao" <waltershao@xxxxxxxxx> wrote in message
news:1145414368.744608.186430@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks. Could you tell me how to check if the stack is set up
properly? My startup.s is modified based on the existing linux's start
up code. The stack initial code is almost the same. I don't know why
Linux's boot loader can work fine, but mine will get that trouble. Is
there any difference I should take care? Is something to do with
eboot.bib?



.



Relevant Pages

  • Re: which object orient language is most suitable for embedded programming?
    ... All the 'boot' has to do is set the stack pointer, ... pass a pair of values defining the limits of memory. ... These things can be highly dependant on the particular board - you can't just use the startup code that comes with the compiler. ...
    (comp.arch.embedded)
  • Re: which object orient language is most suitable for embedded programming?
    ... We are talking about embedded systems here and ROM mounted code. ... All the 'boot' has to do is set the stack pointer, ... pass a pair of values defining the limits of memory. ...
    (comp.arch.embedded)
  • Re: In memory layout of the C++ program
    ... > I read the common object file format. ... > machine language is converted to exe file. ... > in done in memory i.e virtual memory and the physical memory also. ... [Stack Pointer] ...
    (microsoft.public.vc.language)
  • Re: Stack way linear interpolation
    ... This doesn't have the overflow problems that using * / separately ... in nearly all cases, the X,Y pairs came from memory. ... as moving the the return stack pointer. ...
    (comp.lang.forth)
  • Re: simulating xilinx block ram with modelsim
    ... The test bench should initialize memory ... attributes of the BLKRAM to initialize values. ... well of course i checked my input signals and i applie values to them. ...
    (comp.arch.fpga)