RE: POSIX and return codes...

2018-02-28 Thread Jakob Viketoft
Hello Sebastian, From: Sebastian Huber [sebastian.hu...@embedded-brains.de] Sent: Wednesday, February 28, 2018 11:55 > - Am 27. Feb 2018 um 13:11 schrieb Jakob Viketoft > jakob.viket...@aacmicrotec.com: > >> From: Joel Sherrill [j...@rtems.org] >> Sent: Monday, Fe

RE: POSIX and return codes...

2018-02-27 Thread Jakob Viketoft
From: Joel Sherrill [j...@rtems.org] Sent: Monday, February 26, 2018 14:36 >> On Feb 26, 2018 8:27 AM, "Jakob Viketoft" <jakob.viket...@aacmicrotec.com> >> wrote: >> Hello Joel, >> From: Joel Sherrill [j...@rtems.org] >> Sent: Monday, February 26, 2

RE: POSIX and return codes...

2018-02-26 Thread Jakob Viketoft
Hello Joel, From: Joel Sherrill [j...@rtems.org] Sent: Monday, February 26, 2018 12:21 > On Feb 26, 2018 5:13 AM, "Jakob Viketoft" <jakob.viket...@aacmicrotec.com> > wrote: >> E.g. could it be possible for the translation mechanism to look if there is

POSIX and return codes...

2018-02-26 Thread Jakob Viketoft
Hello! We have a number of drivers in our BSP which all use the POSIX access methods to try and keep a clean interface etc. However, we also seem to stumble into a return error code translation issue. RTEMS seems to have a very few defined errno's and translate the relatively scarce amount of

RE: Time spent in ticks...

2016-10-18 Thread Jakob Viketoft
Hello Pavel, Joel, Sebastian, From: Pavel Pisa [ppisa4li...@pikron.com] Sent: Thursday, October 13, 2016 19:09 To: devel@rtems.org Cc: Jakob Viketoft; j...@rtems.org Subject: Re: Time spent in ticks... > Hello Jakob, > ... > the time is measured and timers queue use 64-bit types

RE: Time spent in ticks...

2016-10-13 Thread Jakob Viketoft
From: Joel Sherrill [j...@rtems.org] Sent: Thursday, October 13, 2016 17:38 To: Jakob Viketoft Cc: devel@rtems.org Subject: Re: Time spent in ticks... >I don't have an or1k handy so ran on a sparc/erc32 simulator/ >It is is a SPARC v7 at 15 Mhz. >These times are in microseconds

Time spent in ticks...

2016-10-13 Thread Jakob Viketoft
at repo.aacmicrotec.com.) Best regards, /Jakob Jakob Viketoft Senior Engineer in RTL and embedded software ÅAC Microtec AB Dag Hammarskjölds väg 48 SE-751 83 Uppsala, Sweden T: +46 702 80 95 97 http://www.aacmicrotec.com ___ devel mailing list

RE: [PATCH 5/8] generic_or1k BSP clock driver correction

2016-03-01 Thread Jakob Viketoft
From: devel [devel-boun...@rtems.org] on behalf of Jakob Viketoft [jakob.viket...@aacmicrotec.com] Sent: Tuesday, March 01, 2016 15:03 To: Hesham Almatary Cc: rtems-de...@rtems.org Subject: RE: [PATCH 5/8] generic_or1k BSP clock driver correction

RE: [PATCH 5/8] generic_or1k BSP clock driver correction

2016-03-01 Thread Jakob Viketoft
From: devel [devel-boun...@rtems.org] on behalf of Hesham Almatary [heshamelmat...@gmail.com] Sent: Saturday, February 27, 2016 19:57 To: Jakob Viketoft Cc: rtems-de...@rtems.org Subject: Re: [PATCH 5/8] generic_or1k BSP clock driver correction >On

RE: [PATCH 7/8] OR1k cache flush/invalidate additions

2016-02-24 Thread Jakob Viketoft
d foul tricks on the previous version) a new version of the patch which _should_ work. /Jakob >From 2c27d1b315c75c787ccbfa353a5757d52ea309ff Mon Sep 17 00:00:00 2001 From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> Date: Sat, 20 Feb 2016 23:23:27 +0100 Subject: [PATCH 7/8] O

RE: [PATCH 8/8] Added an interrupt handler to generic_or1k BSP

2016-02-20 Thread Jakob Viketoft
I hadn't really intended this to be part of the series, but rather a stand-alone addition, but apparently I stod on the wrong commit when generating the series and didn't notice before sending out the first e-mail. Oh well, it's late on a Saturday... ;) /Jakob Jakob Viketoft Senior

[PATCH 7/8] OR1k cache flush/invalidate additions

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> Close #2602 --- c/src/lib/libcpu/or1k/shared/cache/cache.c | 129 + 1 file changed, 94 insertions(+), 35 deletions(-) diff --git a/c/src/lib/libcpu/or1k/shared/cache/cache.c b/c/src/lib/libcpu/or1k/shared

[PATCH 8/8] Added an interrupt handler to generic_or1k BSP

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> Update #2603 --- c/src/lib/libbsp/or1k/generic_or1k/irq/irq.c | 61 1 file changed, 54 insertions(+), 7 deletions(-) diff --git a/c/src/lib/libbsp/or1k/generic_or1k/irq/irq.c b/c/src/lib/libbsp/or1k/generi

[PATCH 6/8] OR1k shared and generic_or1k BSP link script rewrite

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> - Rewrote the link scripts to make more sense and to correct the weird stack calculations previously made Close #2601 --- .../lib/libbsp/or1k/generic_or1k/startup/linkcmds | 12 +- .../libbsp/or1k/shared/include/linker-sym

[PATCH 4/8] Improve OR1k context handling

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> Close #2599 --- cpukit/score/cpu/or1k/or1k-context-initialize.c | 13 ++- cpukit/score/cpu/or1k/or1k-context-switch.S | 113 2 files changed, 69 insertions(+), 57 deletions(-) diff --git a/cpukit/score/cp

[PATCH 5/8] generic_or1k BSP clock driver correction

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> - Improve the clock driver to use RTEMS default tick period or the on the one supplied by the application - Avoid rewriting the timer settings, since all we need is to clear the interrupt - Remove any mention of or1ksim in

[PATCH 2/8] or1k: Fix inconsistencies in _ISR_enable/disable/flash

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> Close #2597 --- cpukit/score/cpu/or1k/cpu.c | 18 + cpukit/score/cpu/or1k/rtems/score/cpu.h | 47 - 2 files changed, 29 insertions(+), 36 deletions(-) diff --git a/cpukit/score/cp

[PATCH 3/8] OR1k exception handling and start code

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> - Correct start vector table. - Add proper init of registers and caches - Add more information on unhandled exceptions - Use defines instead of hardcoded values for readability Close #2598 --- c/src/lib/libbsp/or1k/generic_or1k/start/s

[PATCH 1/8] or1k: Add further defines and helper functions in header file

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> Close #2596. --- cpukit/score/cpu/or1k/rtems/score/or1k-utility.h | 244 +-- 1 file changed, 222 insertions(+), 22 deletions(-) diff --git a/cpukit/score/cpu/or1k/rtems/score/or1k-utility.h b/cpukit/score/cpu/or1k

RE: [PATCH 6/6] OR1k cache invalidate additions

2016-02-20 Thread Jakob Viketoft
20, 2016 at 3:34 AM, <jakob.viket...@gmail.com> wrote: >> From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> > >When breaking lines in expressions, leave the first and last line empty, >for ( >addr = ...(); >addr > 0; >addr -= .

RE: [PATCH 1/6] Patches for the OR1k CPU handling and definitions

2016-02-20 Thread Jakob Viketoft
er names as well, or just this one? Thanks for checking! >_______ >devel mailing list >devel@rtems.org >http://lists.rtems.org/mailman/listinfo/devel Jakob Viketoft Senior Engineer in RTL and embedded software ÅAC Microtec AB Dag Hammarskjölds

[PATCH 5/6] OR1k shared and generic_or1k BSP link script rewrite

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> - Rewrote the link scripts to make more sense and to correct the weird stack calculations previously made --- .../lib/libbsp/or1k/generic_or1k/startup/linkcmds | 12 +- .../libbsp/or1k/shared/include/linker-symbols.h|8

[PATCH 6/6] OR1k cache invalidate additions

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> --- c/src/lib/libcpu/or1k/shared/cache/cache.c | 86 ++-- 1 file changed, 67 insertions(+), 19 deletions(-) diff --git a/c/src/lib/libcpu/or1k/shared/cache/cache.c b/c/src/lib/libcpu/or1k/shared/cache/cache.c

[PATCH 4/6] generic_or1k BSP clock driver correction

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> - Improve the clock driver to use RTEMS default tick period or the on the one supplied by the application - Avoid rewriting the timer settings, since all we need is to clear the interrupt - Remove any mention of or1ksim in

[PATCH 3/6] Improve OR1k context handling

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> --- cpukit/score/cpu/or1k/or1k-context-initialize.c | 13 ++- cpukit/score/cpu/or1k/or1k-context-switch.S | 113 --- 2 files changed, 69 insertions(+), 57 deletions(-) diff --git a/cpukit/score/cpu/or1

[PATCH 2/6] OR1k exception handling and start code

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> - Correct start vector table. - Add proper init of registers and caches - Add more information on unhandled exceptions - Use defines instead of hardcoded values for readability --- c/src/lib/libbsp/or1k/generic_or1k/start/start.S

[PATCH 1/6] Patches for the OR1k CPU handling and definitions

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft <jakob.viket...@aacmicrotec.com> --- cpukit/score/cpu/or1k/cpu.c | 18 +- cpukit/score/cpu/or1k/rtems/score/cpu.h | 47 ++--- cpukit/score/cpu/or1k/rtems/score/or1k-utility.h | 244 -- 3 files changed, 251 inse

RE: OpenRISC patch series...

2016-02-19 Thread Jakob Viketoft
From: ged...@gwmail.gwu.edu [ged...@gwmail.gwu.edu] on behalf of Gedare Bloom [ged...@rtems.org] Sent: Friday, February 19, 2016 15:58 To: Jakob Viketoft Cc: devel@rtems.org Subject: Re: OpenRISC patch series... >On Fri, Feb 19, 2016 at 7:59 AM, Ja

RE: OpenRISC patch series...

2016-02-19 Thread Jakob Viketoft
From: Hesham Almatary [heshamelmat...@gmail.com] Sent: Friday, February 19, 2016 16:28 To: Jakob Viketoft Cc: devel@rtems.org Subject: Re: OpenRISC patch series... >On Sat, Feb 20, 2016 at 2:12 AM, Jakob Viketoft ><jakob.viket...@aacmicrotec.c

RE: OpenRISC patch series...

2016-02-19 Thread Jakob Viketoft
Hello Hesham, From: Hesham Almatary [heshamelmat...@gmail.com] Sent: Friday, February 19, 2016 15:51 To: Jakob Viketoft Cc: devel@rtems.org Subject: Re: OpenRISC patch series... >Hi Jakob, > >On Fri, Feb 19, 2016 at 11:59 PM, Jakob Viketoft >

RE: OpenRISC patch series...

2016-02-19 Thread Jakob Viketoft
From: Sebastian Huber [sebastian.hu...@embedded-brains.de] Sent: Friday, February 19, 2016 13:44 To: Jakob Viketoft; devel@rtems.org Subject: Re: OpenRISC patch series... >On 19/02/16 13:40, Jakob Viketoft wr

RE: [PATCH 7/7] Add more OR1k machine types and correct OR1k configure subdir

2016-02-19 Thread Jakob Viketoft
From: Sebastian Huber [sebastian.hu...@embedded-brains.de] Sent: Friday, February 19, 2016 13:36 To: Jakob Viketoft; devel@rtems.org Subject: Re: [PATCH 7/7] Add more OR1k machine types and correct OR1k configure subdir >On 19/02/16 10:34, Jakob Viket

RE: OpenRISC patch series...

2016-02-19 Thread Jakob Viketoft
nch or the master? Sorry that I forgot to mention that, they are relative to 4.11 as of d85db176e7d5bcb832ce0764d7db8b94090c4256. /Jakob Jakob Viketoft Senior Engineer in RTL and embedded software ÅAC Microtec AB Dag Hammarskjölds väg 48 SE-751 83 Uppsala, Sweden T: +46 702 80 95 97 h

[PATCH] Correct telnetd uint declaration

2016-02-19 Thread Jakob Viketoft
= pfc1 + sizeof(des1_f); pfc3 = pfc2 + sizeof(des2_f); Jakob Viketoft Senior Engineer in RTL and embedded software ÅAC Microtec AB Dag Hammarskjölds väg 48 SE-751 83 Uppsala, Sweden T: +46 702 80 95 97 http://www.aacmicrotec.com ___ devel mailing

[PATCH 7/7] Add more OR1k machine types and correct OR1k configure subdir

2016-02-19 Thread Jakob Viketoft
in mips*-*) os=-elf ;; - or1k-*) + or1k-* | or1k*-*-*) os=-elf ;; or32-*) Jakob Viketoft Senior Engineer in RTL and embedded software ÅAC Microtec AB Dag Hammarskjölds väg 48 SE-751 83 Uppsala, Sweden T

[PATCH 6/7] OR1k cache invalidate additions

2016-02-19 Thread Jakob Viketoft
); + asm volatile("l.nop"); + asm volatile("l.nop"); + asm volatile("l.nop"); } void _CPU_cache_enable_data(void) Jakob Viketoft Senior Engineer in RTL and embedded software ÅAC Microtec AB Dag Hammarskjölds väg 48 SE-751 8

[PATCH 5/7] OR1k shared and generic_or1k BSP link script rewrite

2016-02-19 Thread Jakob Viketoft
@@ /* * COPYRIGHT (c) 2014 Hesham ALMatary <heshamelmat...@gmail.com> + * Copyright (c) 2015 ÅAC Microtec AB + * Jakob Viketoft <jakob.viket...@aacmicrotec.com> * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or

[PATCH 2/7] Exception handling and start code

2016-02-19 Thread Jakob Viketoft
-2015 Hesham ALMatary <heshamelmat...@gmail.com> + * Copyright (c) 2014-2016 ÅAC Microtec AB + * Jakob Viketoft <jakob.viket...@aacmicrotec.com> * - * The license and distribution terms for this file may be - * found in the file LICENSE in this

OpenRISC patch series...

2016-02-19 Thread Jakob Viketoft
are interdependent and extracted it as a "normal" git diff. I hope this is good enough, but otherwise, please comment on the patches. Best regards, /Jakob Jakob Viketoft Senior Engineer in RTL and embedded software ÅAC Microtec AB Dag Hammarskjölds väg 48 SE-751 83 Uppsala, Sweden T: +46