Head. s analysis (6): Stack pointer Initialization

Source: Internet
Author: User

 

Happy shrimp

Http://blog.csdn.net/lights_joy/

Lights@hb165.com

This article applies

ADI bf561 DSP

Uclinux-2008r1.5-rc3 (ported to vdsp5)

Visual DSP ++ 5.0 (Update 5)

Reprinted, but keep the author information

 

/* Initialize Stack pointer */

Sp. L = Lo (initial_stack );

Sp. H = Hi (initial_stack );

Fp = sp;

USP = sp;

At the beginning of kernel startup, a series of function calls are also required. Therefore, stacks must be used.

Set it to initial_stack, and its value is defined:

# Define initial_stack 0xffb01000

That is, the highest position of L1 scratchpad SRAM (4 K.

 

1 References

Head. s analysis (1): Save the pointer passed by U-boot)

Head. s analysis (2): syscfg configuration)

Head. s analysis (3): clear data and pointer register 0)

Head. s analysis (4): Disable cache)

Head. s analysis (5): Disable the serial port)

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.