Re: or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-18 Thread Hesham Moustafa
Hi, The semaphore functions were producing _unalign exception before (printf issue). I added #define STACK_CHECKER_ON to ticker and here is what I got: *** BEGIN OF TEST CLOCK TICK *** BLOWN STACK!!! task control block: 0x00041488 task ID: 0x0A010001 task name: 0x task name string: task

Re: or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-17 Thread Joel Sherrill
On 9/17/2014 2:48 PM, Hesham Moustafa wrote: > > On Wed, Sep 17, 2014 at 9:44 PM, Joel Sherrill > wrote: > > > On 9/17/2014 12:44 PM, Hesham Moustafa wrote: > > > > On Tue, Sep 16, 2014 at 11:08 PM, Joel Sherrill > mailto:joel.sherr...@oarcorp.com> >

Re: or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-17 Thread Hesham Moustafa
On Wed, Sep 17, 2014 at 9:44 PM, Joel Sherrill wrote: > > On 9/17/2014 12:44 PM, Hesham Moustafa wrote: > > > > On Tue, Sep 16, 2014 at 11:08 PM, Joel Sherrill < > joel.sherr...@oarcorp.com > > > wrote: > > > > Gedare.. cc'ed you for help in spotting an empty

Re: or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-17 Thread Joel Sherrill
On 9/17/2014 12:44 PM, Hesham Moustafa wrote: > > On Tue, Sep 16, 2014 at 11:08 PM, Joel Sherrill > wrote: > > Gedare.. cc'ed you for help in spotting an empty rbtree > in gdb. See below. > On 9/16/2014 2:45 PM, Hesham Moustafa wrote: > > Breakpo

Re: or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-17 Thread Hesham Moustafa
On Tue, Sep 16, 2014 at 11:08 PM, Joel Sherrill wrote: > Gedare.. cc'ed you for help in spotting an empty rbtree > in gdb. See below. > On 9/16/2014 2:45 PM, Hesham Moustafa wrote: > > Breakpoint 2, 0x0600 in _unalign () > > (gdb) bt > > #0 0x0600 in _unalign () > > #1 0x0002ec4c in _RB

Re: or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Gedare Bloom
On Tue, Sep 16, 2014 at 5:08 PM, Joel Sherrill wrote: > Gedare.. cc'ed you for help in spotting an empty rbtree > in gdb. See below. > On 9/16/2014 2:45 PM, Hesham Moustafa wrote: >> Breakpoint 2, 0x0600 in _unalign () >> (gdb) bt >> #0 0x0600 in _unalign () >> #1 0x0002ec4c in _RBTree_N

Re: or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Joel Sherrill
Gedare.. cc'ed you for help in spotting an empty rbtree in gdb. See below. On 9/16/2014 2:45 PM, Hesham Moustafa wrote: > Breakpoint 2, 0x0600 in _unalign () > (gdb) bt > #0 0x0600 in _unalign () > #1 0x0002ec4c in _RBTree_Next ( > node=0x40890, dir=RBT_RIGHT) > at ../../../../../

Re: or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Hesham Moustafa
Breakpoint 1, _RBTree_Next (node=0x40890, dir=RBT_RIGHT) at ../../../../../../rtems/c/src/../../cpukit/score/src/rbtreenext.c:35 35 RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir ); (gdb) n 36 RBTree_Node *current = node->child[ dir ]; (gdb) n 37 RBTree_Node *next = NULL;

Re: or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Hesham Moustafa
Breakpoint 2, 0x0600 in _unalign () (gdb) bt #0 0x0600 in _unalign () #1 0x0002ec4c in _RBTree_Next ( node=0x40890, dir=RBT_RIGHT) at ../../../../../../rtems/c/src/../../cpukit/score/src/rbtreenext.c:35 #2 0x0002e2f4 in _RBTree_Successor ( node=0x40890) at ../../cpukit/..

Re: or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Joel Sherrill
On 9/16/2014 2:17 PM, Hesham Moustafa wrote: On Tue, Sep 16, 2014 at 8:42 PM, Joel Sherrill wrote: On 9/16/2014 1:34 PM, Hesham Moustafa wrote: On Tue, Sep 16, 2014 at 8:15 PM, Joel Sherrill wrote: On 9/16/2014 12:54 PM, Hesham Moustafa wrote: Hi On Tue, Sep 16, 2014 at 7:47 PM, Joel Sher

Re: or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Hesham Moustafa
On Tue, Sep 16, 2014 at 8:42 PM, Joel Sherrill wrote: > > > On 9/16/2014 1:34 PM, Hesham Moustafa wrote: >> >> On Tue, Sep 16, 2014 at 8:15 PM, Joel Sherrill >> wrote: >>> >>> On 9/16/2014 12:54 PM, Hesham Moustafa wrote: Hi On Tue, Sep 16, 2014 at 7:47 PM, Joel Sherrill

or1k test was .. Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Joel Sherrill
On 9/16/2014 1:34 PM, Hesham Moustafa wrote: On Tue, Sep 16, 2014 at 8:15 PM, Joel Sherrill wrote: On 9/16/2014 12:54 PM, Hesham Moustafa wrote: Hi On Tue, Sep 16, 2014 at 7:47 PM, Joel Sherrill wrote: I don't understand this but I got it applied. I manually edited the saved email to del

Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Hesham Moustafa
On Tue, Sep 16, 2014 at 8:15 PM, Joel Sherrill wrote: > > On 9/16/2014 12:54 PM, Hesham Moustafa wrote: >> Hi >> >> On Tue, Sep 16, 2014 at 7:47 PM, Joel Sherrill >> wrote: >>> I don't understand this but I got it applied. >>> >>> I manually edited the saved email to delete the preinstall.am >>>

Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Hesham Moustafa
On Tue, Sep 16, 2014 at 8:15 PM, Joel Sherrill wrote: > > On 9/16/2014 12:54 PM, Hesham Moustafa wrote: >> Hi >> >> On Tue, Sep 16, 2014 at 7:47 PM, Joel Sherrill >> wrote: >>> I don't understand this but I got it applied. >>> >>> I manually edited the saved email to delete the preinstall.am >>>

Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Joel Sherrill
On 9/16/2014 12:54 PM, Hesham Moustafa wrote: > Hi > > On Tue, Sep 16, 2014 at 7:47 PM, Joel Sherrill > wrote: >> I don't understand this but I got it applied. >> >> I manually edited the saved email to delete the preinstall.am >> changes. I committed the rest. Then I ran bootstrap -p myself >>

Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Hesham Moustafa
Hi On Tue, Sep 16, 2014 at 7:47 PM, Joel Sherrill wrote: > I don't understand this but I got it applied. > > I manually edited the saved email to delete the preinstall.am > changes. I committed the rest. Then I ran bootstrap -p myself > and folded that into the rest of your patch. > > It should

Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Joel Sherrill
I don't understand this but I got it applied. I manually edited the saved email to delete the preinstall.am changes. I committed the rest. Then I ran bootstrap -p myself and folded that into the rest of your patch. It should all be committed now. How about some new test results. :) --joel On 9

[PATCH] or1k: New cache manager.

2014-09-16 Thread Hesham ALMatary
Implement new cache functions for or1k and create new bspstart function for or1ksim to initialize instruction and data caches. Also, sim.cfg is modified to enable/confiure cache units. --- c/src/lib/libbsp/or1k/or1ksim/Makefile.am| 9 +- c/src/lib/libbsp/or1k/or1ksim/preinstall.am |

Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Hesham Moustafa
nstall.am. It's against current RTEMS HEAD. > $ git am /media/sf_jrs007/patches/\[PATCH\]\ or1k\ \ New\ cache\ > manager..eml > Applying: or1k: New cache manager. > error: patch failed: c/src/lib/libbsp/or1k/or1ksim/preinstall.am:86 > error: c/src/lib/libbsp/or1k/or1ksim

Re: [PATCH] or1k: New cache manager.

2014-09-16 Thread Joel Sherrill
I am not sure what it up. Chris committed a patch that changed the sort order to be more uniform. But your preinstall.am's don't match. Maybe you should try regenerating them. Perhaps they are from before his change being committed. $ git am /media/sf_jrs007/patches/\[PATCH\]\ or1k\ \

[PATCH] or1k: New cache manager.

2014-09-16 Thread Hesham ALMatary
Implement new cache functions for or1k and create new bspstart function for or1ksim to initialize instruction and data caches. Also, sim.cfg is modified to enable/confiure cache units. --- c/src/lib/libbsp/or1k/or1ksim/Makefile.am| 10 +- c/src/lib/libbsp/or1k/or1ksim/preinstall.am |