Vdsp handles untitled Union bugs

Source: Internet
Author: User

Happy shrimp

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

Lights@hb165.com

 

 

 

 

This article applies

ADSP-BF561

Visual DSP ++ 5.0 (update 7)

 

 

 

 

Reprinted, but keep the author information

 

When the vdsp processes the Untitled union in the struct, there is a bug, as shown in the following struct:

Struct restart_block {

Long (* fN) (struct restart_block *);

Union {

Struct {

Unsigned long arg0, arg1, arg2, arg3;

};

/* For futex_wait */

Struct {

U32 * uaddr;

U32 val;

U32 flags;

U32 bitset;

U64 time;

} Futex;

/* For nanosleep */

Struct {

Clockid_t index;

Struct timespec _ User * rmtp;

U64 expires;

} Nanosleep;

/* For poll */

Struct {

Struct pollfd _ User * ufds;

Int NFDs;

Int has_timeout;

Unsigned long TV _sec;

Unsigned long TV _nsec;

} Poll;

};

};

In the vdsp debugger, you will not see the Untitled Union value, just like this:

 

But when we give this untitled union a name, it's Okay:

 

 

 

 

Recently, my 6-year-old girl took part in the sixth pop National Children's English style competition, canvassing in progress (Before ).

Click the link of the New Oriental Website:

Http://popdasai.xdf.cn/toupiao.php? Do = Space & UUID = 4237

Vote for her. Thank you!

 

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.