On centos-5 2.6.18 kernel, I get a failure with shmat01:

shmat01     1  FAIL  :  shmat01 call failed - errno = 22 : Invalid argument
shmat01     2  BROK  :  Remaining cases broken
shmat01     3  BROK  :  Remaining cases broken

In the setup() function at the end:

        /* some architectures (e.g. parisc) are strange, so better always align 
to
         * next SHMLBA address. */
        base_addr = (void *)( ((unsigned long)(base_addr) & ~(SHMLBA-1)) + 
SHMLBA );

This bumps up the address if it's already aligned!!!!!

This this line instead:
base_addr = (void *)( ((unsigned long)(base_addr) + (SHMLBA-1)) & ~(SHMLBA-1));

it works on all of our i686 systems.

Bob


-- 
Bob Hepple <[EMAIL PROTECTED]>
ph: 07-5584-5908 Fx: 07-5575-9550

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to