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" >> wrote: >> Hello Joel, >> From: Joel Sherrill [j...@rtems.org] >> Sent: Monday, February 26, 2018 12:21 >>> On Feb 26, 201

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" > wrote: >> E.g. could it be possible for the translation mechanism to look if there is >> already an errno defined and then retu

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 R

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 an

Time spent in ticks...

2016-10-13 Thread Jakob Viketoft
, bsps and toolchains can be downloaded 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 __

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
played 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 Date: Sat, 20 Feb 2016 23:23:27 +0100 Subject: [PATCH 7/8] OR1k cache flush/invalidate addition

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

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

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft 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/cache/cache.c index d17fec2..02e4aab

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

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft 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/generic_or1k/irq/irq.c index c3c4d6d

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

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft - 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-symbols.h| 8 +- c/src/lib/libbsp/or1k

[PATCH 4/8] Improve OR1k context handling

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft 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/cpu/or1k/or1k-context-initialize.c b

[PATCH 5/8] generic_or1k BSP clock driver correction

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft - 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 favour of generic_or1k Close #2600

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

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft 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/cpu/or1k/cpu.c b/cpukit/score/cpu/or1k

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

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft - 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/start.S | 258

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

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft 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/rtems/score/or1k-utility.h index

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

2016-02-20 Thread Jakob Viketoft
20, 2016 at 3:34 AM, wrote: >> From: Jakob Viketoft > >When breaking lines in expressions, leave the first and last line empty, >for ( >addr = ...(); >addr > 0; >addr -= ... >) { >... >} Didn't see that. Will fix. >> +_CPU_OR1K_Cac

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

2016-02-20 Thread Jakob Viketoft
ean I should adjust some of the other 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

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

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft - 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 +- c/src/lib/libbsp/or1k/shared/startup

[PATCH 6/6] OR1k cache invalidate additions

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft --- 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 index d17fec2..49f5ca9 100644 --- a/c

[PATCH 4/6] generic_or1k BSP clock driver correction

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft - 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 favour of generic_or1k --- .../lib/libbsp

[PATCH 3/6] Improve OR1k context handling

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft --- 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/or1k/or1k-context-initialize.c b/cpukit/score

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

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft - 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 | 258 +--- cpukit/score

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

2016-02-20 Thread jakob . viketoft
From: Jakob Viketoft --- 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 insertions(+), 58 deletions(-) diff --git a

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 > wrote: >>

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 Viketof

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
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
pfc3, pfc4; pfc1 = pf; pfc2 = 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 _

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

2016-02-19 Thread Jakob Viketoft
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
ot;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 83 Uppsala, Sweden T: +46 702 80 95 97 http://www.aacmicrote

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

2016-02-19 Thread Jakob Viketoft
@@ /* * COPYRIGHT (c) 2014 Hesham ALMatary + * Copyright (c) 2015 ÅAC Microtec AB + *Jakob Viketoft * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.org/license/LICENSE */ +/* Set up system

[PATCH 4/7] generic_or1k BSP clock driver correction

2016-02-19 Thread Jakob Viketoft
@@ * * @ingroup bsp_clock * - * @brief or1k clock support. + * @brief generic_or1k clock support. */ /* * generic_or1k Clock driver * * COPYRIGHT (c) 2014-2015 Hesham ALMatary + * Copyright (c) 2014-2016 ÅAC Microtec AB + * Jakob Viketoft * * The license and

[PATCH 3/7] OR1k context handling

2016-02-19 Thread Jakob Viketoft
l.nop SYM(_CPU_Context_restore): - l.add r4,r3,r0 - l.add r13,r0,r0 + l.add r4, r3, r0 l.j restore l.nop SYM(_CPU_Context_restore_fp): + l.jrr9 l.nop SYM(_CPU_Context_save_fp): + l.jr r9 l.nop Jakob Viketoft Senior Engineer in RTL and embedded software

[PATCH 2/7] Exception handling and start code

2016-02-19 Thread Jakob Viketoft
-2015 Hesham ALMatary + * Copyright (c) 2014-2016 ÅAC Microtec AB + * Jakob Viketoft * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE + * The license and

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

2016-02-19 Thread Jakob Viketoft
*/ /* + * COPYRIGHT (c) 2014-2015 ÅAC Microtec AB + * Karol Gugala + * Jakob Viketoft * COPYRIGHT (c) 2014 Hesham ALMatary * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at

OpenRISC patch series...

2016-02-19 Thread Jakob Viketoft
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