Re: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-25 Thread Hesham Moustafa
Hi, On Fri, Jul 25, 2014 at 4:32 AM, Hesham Moustafa wrote: > Hi, > > Now ticker is working fine with interrupt handling, context switch > happening as expected. The problem is that put_name() and print_time() > are not producing any output (except for the first three instances > before _Thread_D

Re: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-24 Thread Hesham Moustafa
Hi, Now ticker is working fine with interrupt handling, context switch happening as expected. The problem is that put_name() and print_time() are not producing any output (except for the first three instances before _Thread_Dispatch get them executing again after _Thread_Delay_ended has been execu

Re: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-18 Thread Joel Sherrill
The ASM macro needs to be properly used in rtems/score/cpu.h. I sent a patch to devel@ but it is really a hack. Things compile but I wouldn't trust it. + ASM should protect C only code from being used in .S code. And vice-versa. When I started, there was C code exposed to .S. When I blocked off

Re: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-18 Thread Hesham Moustafa
On Fri, Jul 18, 2014 at 10:35 PM, Gedare Bloom wrote: > > > > On Fri, Jul 18, 2014 at 4:15 PM, Hesham Moustafa > wrote: >> >> On Fri, Jul 18, 2014 at 4:17 PM, Gedare Bloom wrote: >> > On Fri, Jul 18, 2014 at 1:35 AM, Hesham Moustafa >> > wrote: >> >> >> >> On Thu, Jul 17, 2014 at 3:10 PM, Joel

Re: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-18 Thread Gedare Bloom
On Fri, Jul 18, 2014 at 4:15 PM, Hesham Moustafa wrote: > On Fri, Jul 18, 2014 at 4:17 PM, Gedare Bloom wrote: > > On Fri, Jul 18, 2014 at 1:35 AM, Hesham Moustafa > > wrote: > >> > >> On Thu, Jul 17, 2014 at 3:10 PM, Joel Sherrill > >> wrote: > >> > This definitely sounds like not handling th

Re: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-18 Thread Hesham Moustafa
On Fri, Jul 18, 2014 at 4:19 PM, Gedare Bloom wrote: > I see you are kind of copying the file structure of ARM. I'm not sure > this is a good example for a simple port. m68k is more > straightforward. > Which file? > -Gedare > > On Fri, Jul 18, 2014 at 10:17 AM, Gedare Bloom wrote: >> On Fri, Jul

Re: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-18 Thread Hesham Moustafa
On Fri, Jul 18, 2014 at 4:17 PM, Gedare Bloom wrote: > On Fri, Jul 18, 2014 at 1:35 AM, Hesham Moustafa > wrote: >> >> On Thu, Jul 17, 2014 at 3:10 PM, Joel Sherrill >> wrote: >> > This definitely sounds like not handling the context switch necessary >> > part of the >> > IRQ processing properly

Re: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-18 Thread Gedare Bloom
I see you are kind of copying the file structure of ARM. I'm not sure this is a good example for a simple port. m68k is more straightforward. -Gedare On Fri, Jul 18, 2014 at 10:17 AM, Gedare Bloom wrote: > On Fri, Jul 18, 2014 at 1:35 AM, Hesham Moustafa > wrote: >> >> On Thu, Jul 17, 2014 at 3

Re: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-18 Thread Gedare Bloom
On Fri, Jul 18, 2014 at 1:35 AM, Hesham Moustafa wrote: > > On Thu, Jul 17, 2014 at 3:10 PM, Joel Sherrill > wrote: > > This definitely sounds like not handling the context switch necessary > > part of the > > IRQ processing properly so always returning to IDLE. I call this a > > simple return. >

Re: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-17 Thread Hesham Moustafa
On Thu, Jul 17, 2014 at 3:10 PM, Joel Sherrill wrote: > > On 7/17/2014 4:57 AM, Hesham Moustafa wrote: >> Hi, >> >> I am trying to get ticker.exe working properly for or1ksim BSP but >> there is a problem. When I run ticker, I only get the following output >> >> "*** BEGIN OF TEST CLOCK TICK *** >

Re: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-17 Thread Joel Sherrill
On 7/17/2014 4:57 AM, Hesham Moustafa wrote: > Hi, > > I am trying to get ticker.exe working properly for or1ksim BSP but > there is a problem. When I run ticker, I only get the following output > > "*** BEGIN OF TEST CLOCK TICK *** > TA1 - rtems_clock_get_tod - 09:00:00 12/31/1988 > TA2 - rte

RE: Problem with ticker.exe for or1ksim/OpenRISC BSP

2014-07-17 Thread Jennifer Averett
> -Original Message- > From: devel [mailto:devel-boun...@rtems.org] On Behalf Of Hesham > Moustafa > Sent: Thursday, July 17, 2014 4:58 AM > To: rtems-de...@rtems.org > Subject: Problem with ticker.exe for or1ksim/OpenRISC BSP > > Hi, > > I am trying to get ticker.exe working properly f