[PATCH v3 2/2] Add correct link address for griscv waf build

2020-11-01 Thread Jiri Gaisler
--- spec/build/bsps/riscv/optrambegin.yml | 3 +++ spec/build/bsps/riscv/optramsize.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/spec/build/bsps/riscv/optrambegin.yml b/spec/build/bsps/riscv/optrambegin.yml index cf5d909562..2073926dac 100644 --- a/spec/build/bsps/riscv/optrambegi

[PATCH v3 0/2] Add networking support for griscv bsp

2020-11-01 Thread Jiri Gaisler
Third attempt. Needed to fix the waf build and add correct link address for the griscv bsp. Tested with rtems-netdemos. Jiri Gaisler (2): Add networking support for griscv bsp Add correct link address for griscv waf build bsps/riscv/griscv/console/console.c | 2 +- bsps/riscv/grisc

[PATCH v3 1/2] Add networking support for griscv bsp

2020-11-01 Thread Jiri Gaisler
* Only GRETH device supported for now * Fix endian problem in GRETH driver * Remove SPARC assembly from greth.c * Builds with both autoconf and waf --- bsps/riscv/griscv/console/console.c | 2 +- bsps/riscv/griscv/include/bsp.h | 14 + bsp

Re: Fatal exceptions on context-switching for more than two isolated threads

2020-11-01 Thread Utkarsh Rai
On Fri, Oct 23, 2020 at 10:28 PM Utkarsh Rai wrote: > > > On Fri, Oct 23, 2020 at 9:57 PM Gedare Bloom wrote: > >> On Fri, Oct 23, 2020 at 9:37 AM Utkarsh Rai >> wrote: >> > >> > >> > >> > On Thu, Oct 22, 2020 at 11:23 PM Sebastian Huber < >> sebastian.hu...@embedded-brains.de> wrote: >> >> >>

Problems compiling rtems-libbsd

2020-11-01 Thread Jiri Gaisler
I am trying to build the rtems-libbsd package to test the new network stack. Configuration works fine, but compiling fails quickly. Log below, any ideas ...? jiri@carbon:~/ibm/src/rtems/rtems-libbsd$ python3 ./waf configure --rtems-bsps=sparc/leon3 --prefix=/opt/rtems/6 --buildset=buildset/default

Re: Problems compiling rtems-libbsd

2020-11-01 Thread Joel Sherrill
Are you on the master instead of 6-freebsd12? Libbsd is different from our other repos since you need to be on a branch that matches RTEMS and FreeBSD version On Sun, Nov 1, 2020, 10:54 AM Jiri Gaisler wrote: > I am trying to build the rtems-libbsd package to test the new network > stack. Confi

Re: Problems compiling rtems-libbsd

2020-11-01 Thread Jiri Gaisler
On 11/1/20 2:29 PM, Joel Sherrill wrote: Are you on the master instead of 6-freebsd12? Libbsd is different from our other repos since you need to be on a branch that matches RTEMS and FreeBSD version

Re: How does context switching work?

2020-11-01 Thread Sebastian Huber
On 31/10/2020 16:50, Richi Dubey wrote: I want to learn more about how context switching works in RTEMS. I saw the following lines in theaddispatch.c:     _Thread_Save_fp( executing );     _Context_Switch( &executing->Registers, &heir->Registers );     _Thread_Restore_fp( executing ); I do

Re: Problems compiling rtems-libbsd

2020-11-01 Thread Sebastian Huber
Hello Jiri, it builds for me. I guess you installed the BSP before with RTEMS_NETWORKING == True and then again with RTEMS_NETWORKING == False. Please remove the BSP installation and start from scratch. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germa