Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

What does the cmd "boot_regs: .space 32*4" mean?
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: What does the cmd "boot_regs: .space 32*4" mean?
  • SDP: 6.4.1
  • Target: Any supported target
________________________________________________________________________

Issue / Question
________________________________________________________________________

In the file : startup/lib/ppc/cstart.s
What does the cmd "boot_regs: .space 32*4" mean?
What is the reg "boot_regs" used for?

________________________________________________________________________

Solution / Recommendation
________________________________________________________________________

It reserves space for saving the 32 4 byte GPR contents. Some ROM monitors pass information in the registers when they transfer control to startup. The startup saves the initial register values so that routines later on can see what they were and make use of them (e.g. of_call() in openfirmware.c).

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.