Head. s analysis (3): Clear 0 data and pointer registers

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

R0 = 0;

 

/* Clear out all the data and pointer REGISTERS */

R1 = R0;

R2 = R0;

R3 = R0;

R4 = R0;

R5 = R0;

R6 = R0;

 

P0 = R0;

P1 = R0;

P2 = R0;

P3 = R0;

P4 = R0;

P5 = R0;

 

Lc0 = R0;

LC1 = R0;

L0 = R0;

L1 = R0;

L2 = R0;

L3 = R0;

 

/* Clear out all the Dag REGISTERS */

B0 = R0;

B1 = R0;

B2 = R0;

B3 = R0;

 

I0 = R0;

I1 = R0;

I2 = R0;

I3 = R0;

 

M0 = R0;

M1 = R0;

M2 = R0;

M3 = R0;

Although this code is long, the function is very simple, and the Register is cleared by 0.

 

1 References

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

Head. s analysis (2): syscfg configuration)

 

 

 

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.