diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-04 10:13:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-06 09:08:22 +0200 |
commit | 3570ec684f23dc57772856d1170d39252299a490 (patch) | |
tree | 9729d0ff751ec562e68a99dfb62e1f60de5e1f0c /cpukit/rtems/src/partcreate.c | |
parent | score: Use red-black tree for active global objects (diff) | |
download | rtems-3570ec684f23dc57772856d1170d39252299a490.tar.bz2 |
rtems: Avoid Giant lock for partitions
Use an ISR lock to protect the partition state changes.
Update #2555.
Diffstat (limited to 'cpukit/rtems/src/partcreate.c')
-rw-r--r-- | cpukit/rtems/src/partcreate.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c index e3544e71b2..c058adff1f 100644 --- a/cpukit/rtems/src/partcreate.c +++ b/cpukit/rtems/src/partcreate.c @@ -94,14 +94,13 @@ rtems_status_code rtems_partition_create( } #endif - the_partition->starting_address = starting_address; - the_partition->length = length; - the_partition->buffer_size = buffer_size; - the_partition->attribute_set = attribute_set; - the_partition->number_of_used_blocks = 0; - - _Chain_Initialize( &the_partition->Memory, starting_address, - length / buffer_size, buffer_size ); + _Partition_Initialize( + the_partition, + starting_address, + length, + buffer_size, + attribute_set + ); _Objects_Open( &_Partition_Information, |