Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 312963

Summary: SysMin_ready fails
Product: [Technology] RTSC Reporter: Ramsey Harris <ramsey>
Component: RuntimeAssignee: Sasha Slijepcevic <sascha>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: c-mccormick, d-russo
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: target:3.20

Description Ramsey Harris CLA 2010-05-14 15:04:12 EDT
I believe that SysMin_ready() is returning false when bufSize = 0x10000 but true when bufSize = 0x1000. I get log events in the outbuf when I set bufSize to 0x1000 (32 KB), but the outbuf is completely empty when I increase bufSize to 0x10000 (64 KB). My guess is that the function is supposed to return a boolean which is 2-bytes, so the lower half of bufSize is returned. This would return 0 when bufSize = 0x10000. I'm running on Netra Simulator, on the M3 Video processor. Found in XDCtools 3.16.02.32.
Comment 1 Sasha Slijepcevic CLA 2010-05-19 17:37:51 EDT
- fixed in xdc-v32
The function now compares bufSize with 0, instead of returning bufSize. The cause of the bug was what was guessed in Ramsey's comment. Only lower 16 bits of a 32-bit value were returned.
Comment 2 Chris McCormick CLA 2010-05-27 19:13:13 EDT
Verified this bug fix by examining SysMin.c in xdcprod-m39. It's pretty obvious what the issue was, and it has been fixed. 'ready' does an actual comparison now to return the correct answer.