From a4097fdb2f0bab0fabb69461ff58194908f91e89 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 21 Feb 2012 12:56:51 +0100 Subject: PR 2026/filesystem - Fix semaphore attributes Semaphores of type RTEMS_SIMPLE_BINARY_SEMAPHORE are not suitable for a mutex. Use RTEMS_BINARY_SEMAPHORE with RTEMS_INHERIT_PRIORITY instead. --- cpukit/libfs/src/rfs/rtems-rfs-mutex.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cpukit/libfs/src/rfs/rtems-rfs-mutex.c b/cpukit/libfs/src/rfs/rtems-rfs-mutex.c index 04d700a916..f35350f653 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-mutex.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-mutex.c @@ -24,15 +24,10 @@ #if __rtems__ /** * RTEMS_RFS Mutex Attributes - * - * @warning Do not configure as inherit priority. If a driver is in the driver - * initialisation table this locked semaphore will have the IDLE task - * as the holder and a blocking task will raise the priority of the - * IDLE task which can cause unsual side effects like not work. */ #define RTEMS_RFS_MUTEX_ATTRIBS \ - (RTEMS_PRIORITY | RTEMS_SIMPLE_BINARY_SEMAPHORE | \ - RTEMS_NO_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL) + (RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE | \ + RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL) #endif int -- cgit v1.2.3 From 8d8f363bd52b18f33628b0069505cc5fe04b616d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 21 Feb 2012 16:24:37 +0100 Subject: LPC32XX: Typo --- c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h b/c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h index cc91a7956b..5fed9031b6 100644 --- a/c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h +++ b/c/src/lib/libbsp/arm/lpc32xx/include/nand-mlc.h @@ -263,7 +263,7 @@ rtems_status_code lpc32xx_mlc_read_page( * @brief Checks if the block with index @a block_index is valid. * * The initial valid block information of the manufacturer will be used. - * Unfortunatly there seems to be no standard for this. A block will be + * Unfortunately there seems to be no standard for this. A block will be * considered as bad if the first or second page of this block does not contain * 0xff at the 6th byte of the spare area. This should work for flashes with * small pages and a 8-bit IO width. -- cgit v1.2.3 From 9294f8fe2ebb93388edbb5bebab3aa664415c072 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 23 Feb 2012 09:55:44 +0100 Subject: psxtests: Fix typo in psxstat --- testsuites/psxtests/psxstat/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/psxtests/psxstat/test.c b/testsuites/psxtests/psxstat/test.c index e3b7f23b8e..c5d344d8fc 100644 --- a/testsuites/psxtests/psxstat/test.c +++ b/testsuites/psxtests/psxstat/test.c @@ -705,7 +705,7 @@ void Cause_faults(void) status = rmdir( longer_name ); rtems_test_assert( status == 0 ); - printf("unlink %s\n", Links_to_Dirs[5]); + printf("unlink %s\n", Links_to_dirlinks[5]); status = unlink( Links_to_dirlinks[5] ); rtems_test_assert( status == 0 ); -- cgit v1.2.3