Re: [GSoC] OpenRISC port | ISR_Enable/Disable and isr_level

2014-08-05 Thread Joel Sherrill
On 7/31/2014 9:31 AM, Hesham Moustafa wrote: > On Thu, Jul 31, 2014 at 4:17 PM, Joel Sherrill > wrote: >> >> On July 31, 2014 8:54:29 AM CDT, Hesham Moustafa >> wrote: >>> Hi all, >>> >>> I was trying to figure out where to increment ISR level related >>> variables. First, I wanna indicate that

[PATCH 2/3] rbtree: Simplify _RBTree_Rotate()

2014-08-05 Thread Sebastian Huber
--- cpukit/score/include/rtems/score/rbtreeimpl.h | 39 --- testsuites/sptests/sprbtree01/init.c | 1 - 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/cpukit/score/include/rtems/score/rbtreeimpl.h b/cpukit/score/include/rtems/score/rbtreeimpl.h

[PATCH 1/3] rbtree: Simplify insert and extract

2014-08-05 Thread Sebastian Huber
Simplify _RBTree_Insert() and _RBTree_Extract(). Remove more superfluous NULL pointer checks. Change _RBTree_Is_root() to use only the node. Add parent parameter to _RBTree_Sibling(). Delete _RBTree_Grandparent() and _RBTree_Parent_sibling(). --- cpukit/sapi/include/rtems/rbtree.h|

[PATCH 3/3] rbtree: Simplify _RBTree_Extract()

2014-08-05 Thread Sebastian Huber
--- cpukit/score/src/rbtreeextract.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/cpukit/score/src/rbtreeextract.c b/cpukit/score/src/rbtreeextract.c index f3a7328..2be6a23 100644 --- a/cpukit/score/src/rbtreeextract.c +++ b/cpukit/score/src/rbtreeextract

Re: [PATCH 1/3] Add and use RTEMS_CONTAINER_OF()

2014-08-05 Thread Sebastian Huber
On 08/04/2014 03:59 PM, Gedare Bloom wrote: >diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c >index 31dd289..f215911 100644 >--- a/cpukit/libblock/src/bdbuf.c >+++ b/cpukit/libblock/src/bdbuf.c >@@ -3178,8 +3178,8 @@ rtems_bdbuf_read_ahead_task (rtems_task_argument arg) > >