Re: Improvements to SMP under the arch64 architecture

2024-05-09 Thread zhengxiaojun
在 2024/5/8 22:36, Sebastian Huber 写道: On 08.05.24 08:17, Sebastian Huber wrote: Hello, on the arm target, we use this: static inline struct Per_CPU_Control *_ARM_Get_current_per_CPU_control( void ) {    struct Per_CPU_Control *cpu_self;    /* Use PL1 only Thread ID Register (TPIDRPRW) */

Improvements to SMP under the arch64 architecture

2024-05-07 Thread zhengxiaojun
Hi, all The current RTEMS can not run on the multi-core CPUs arranged in clusters, the current code treat mpidr as processor index, but when multi-core arranged in cluster, mpidr is 0,0x100,0x200 ... So a mapping needs to be established between mpidr and processor index. MPIDR_EL1 +---+---

Re: [PATCH] Fix the CPU count calculation error.

2024-05-06 Thread zhengxiaojun
在 2024/4/19 16:50, Sebastian Huber 写道: On 19.04.24 09:16, zhengxiaojun wrote: I tested on arm64, the cpu_count do not increase when (redist->icrtyper & GIC_REDIST_ICRTYPER_LAST != 0),but it is the last core. The current code assumes that you have exactly one interrupt

Re: [PATCH] Fix the CPU count calculation error.

2024-04-19 Thread zhengxiaojun
在 2024/4/19 16:50, Sebastian Huber 写道: On 19.04.24 09:16, zhengxiaojun wrote: I tested on arm64, the cpu_count do not increase when (redist->icrtyper & GIC_REDIST_ICRTYPER_LAST != 0),but it is the last core. The current code assumes that you have exactly one interrupt export por

Re: [PATCH] Fix the CPU count calculation error.

2024-04-19 Thread zhengxiaojun
I tested on arm64, the cpu_count do not increase when (redist->icrtyper & GIC_REDIST_ICRTYPER_LAST != 0),but it is the last core. 在 2024/4/19 15:00, Sebastian Huber 写道: Hello, on which platform does this fix a error? ___ devel mailing list devel@r

[PATCH] Fix the CPU count calculation error.

2024-04-18 Thread zhengxiaojun
Fix the CPU count calculation error. Signed-off-by: zhengxiaojun --- bsps/shared/dev/irq/arm-gicv3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/shared/dev/irq/arm-gicv3.c b/bsps/shared/dev/irq/arm-gicv3.c index 958b1061bd..6422a191f1 100644 --- a/bsps/shared/dev

Re: [Tools] rtemstoolkit/libierty: Add missing file

2024-02-27 Thread zhengxiaojun
The patch close #4974. On 2024/2/28 15:11, Chris Johns wrote: OK and thanks Chris On 27/2/2024 9:56 pm, Sebastian Huber wrote: This fixes the following build error for --host=x86_64-w64-mingw32: rtemstoolkit/libiberty.a(pex-win32.c.18.o): in function `win32_spawn': rtemstoolkit/libiberty/pe

Re: Pause on console in libmisc/shell detecting terminal size (mvme5500, beatnik)

2024-01-04 Thread zhengxiaojun
在 2024/1/5 4:25, Peter Dufault 写道: I guess maybe the list went down for a while. I sent this on 12-30, and just got a bounce message today and no "devel" mail until today. On master when I type a shell command at the console there is a pause, rough timing: - Three second pause after hitti

POSIX function link question?

2023-11-12 Thread zhengxiaojun
Hi all: I use dynamic load (RAP format) in my project, I enable POSIX in BSP, but do not refers POSIX API. The application called some POSIX API,so when link without librtemscpu.a, the POSXI API can not be found in the basefile. If I link with librtemscpu.a, link is OK, but loading output

Re: [rtems-tools]rtems-ld issue?

2023-09-03 Thread zhengxiaojun
在 2023/8/31 13:39, Chris Johns 写道: On 31/8/2023 3:12 pm, zhengxiaojun wrote: 在 2023/8/31 6:05, Chris Johns 写道: On 31/8/2023 12:48 am, zhengxiaojun wrote: Hi,     I use the latest rtems-tools to generate RAP file, I found the object file become too small(elf,2184bytes==>rap,736bytes)

Re: [rtems-tools]rtems-ld issue?

2023-08-30 Thread zhengxiaojun
在 2023/8/31 6:05, Chris Johns 写道: On 31/8/2023 12:48 am, zhengxiaojun wrote: Hi,    I use the latest rtems-tools to generate RAP file, I found the object file become too small(elf,2184bytes==>rap,736bytes) and the file loaded failed, error message like this "load app.out error:off

Re: [rtems-tools]rtems-ld issue?

2023-08-30 Thread zhengxiaojun
在 2023/8/31 6:05, Chris Johns 写道: On 31/8/2023 12:48 am, zhengxiaojun wrote: Hi,    I use the latest rtems-tools to generate RAP file, I found the object file become too small(elf,2184bytes==>rap,736bytes) and the file loaded failed, error message like this "load app.out error:off

[rtems-tools]rtems-ld issue?

2023-08-30 Thread zhengxiaojun
Hi, I use the latest rtems-tools to generate RAP file, I found the object file become too small(elf,2184bytes==>rap,736bytes) and the file loaded failed, error message like this "load app.out error:offset past end of file: offset=736 size=736 error." I reverted the rtl-rap.cpp commit(

[PATCH rtems-tools] fix _mkdir parameter error.

2022-11-27 Thread zhengxiaojun
fix _mkdir parameter error. Signed-off-by: zhengxiaojun --- tester/covoar/ReportsBase.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tester/covoar/ReportsBase.cc b/tester/covoar/ReportsBase.cc index 0fb9ce0..eb56c4f 100644 --- a/tester/covoar/ReportsBase.cc +++ b/tester

[Patch] fix a rtems-tools compiler error in MinGW

2022-04-01 Thread zhengxiaojun
Hi, this patch file fixed a rtems-tools compiler error in MinGW. Last mail, I made a wrong format, so I resend it as a attachment. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: GMP error when building aarch64-rtems-gcc on Mingw64

2022-04-01 Thread zhengxiaojun
> On Fri, Apr 1, 2022 at 3:37 AM jameszxj wrote: > It has been there for a while. It is caused by the gmp configure parameter (in gcc/makefile.in line 12644 ) > > So the patch you posted fixes this? Sorry for making you confuse. That patch fixed a rtems-tools error. Send a patch file as attach

Re:[PATCH] fix _mkdir parameter error.[RSB]

2022-04-01 Thread zhengxiaojun
It is a RSB pacth.  git send-eamil has no information about it. -- Original -- From: "zhengxi

[PATCH] fix _mkdir parameter error.

2022-03-31 Thread zhengxiaojun
Signed-off-by: zhengxiaojun --- tester/covoar/ReportsBase.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tester/covoar/ReportsBase.cc b/tester/covoar/ReportsBase.cc index 0fb9ce0..eb56c4f 100644 --- a/tester/covoar/ReportsBase.cc +++ b/tester/covoar/ReportsBase.cc