2009-10-29 Ralf Corsépius <ralf.corsepius@rtems.org>

* psx10/init.c: Pass 0x7FFF instead of 0xFFFFFF as invalid pshared
	attribute to pthread_condattr_setpshared for 16bit target compliance.
This commit is contained in:
Ralf Corsepius
2009-10-29 04:51:39 +00:00
parent cf980b19f7
commit 14da2e71a0

View File

@@ -65,7 +65,7 @@ void *POSIX_Init(
assert( status == EINVAL ); assert( status == EINVAL );
puts( "Init: pthread_condattr_setpshared - EINVAL (attribute invalid)" ); puts( "Init: pthread_condattr_setpshared - EINVAL (attribute invalid)" );
status = pthread_condattr_setpshared( &attr, 0xFFFFFF ); status = pthread_condattr_setpshared( &attr, 0x7FFF );
if ( status != EINVAL ) if ( status != EINVAL )
printf( "status = %d\n", status ); printf( "status = %d\n", status );
assert( status == EINVAL ); assert( status == EINVAL );