Re: [PATCH] improved error checking in ticks per timeslice

2024-03-18 Thread zack leung
Do I need to do anything? On Mon, 18 Mar 2024 at 16:38, Kinsey Moore wrote: > Sorry, I didn't realize I had tests turned off in my local build when I > checked this. The test is now gated behind NEEDS_CLOCK_DRIVER as well. > > Kinsey > > On Mon, Mar 18, 2024 at 4:15 AM Sebastian Huber < > seba

Re: [PATCH] improved error checking in ticks per timeslice

2024-03-14 Thread zack leung
Did you check in the code? Il mar 12 mar 2024, 21:55 Kinsey Moore ha scritto: > Sorry, I missed this in the deluge of emails. Looks good to me. > > Kinsey > > On Tue, Mar 12, 2024 at 8:17 PM zack leung > wrote: > >> ping >> >> On Fri, 8 Mar 2024 at

Re: [PATCH] improved error checking in ticks per timeslice

2024-03-12 Thread zack leung
ping On Fri, 8 Mar 2024 at 22:03, wrote: > From: Zack leung > > --- > cpukit/doxygen/appl-config.h | 3 +-- > cpukit/include/rtems/confdefs/clock.h | 4 > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/cpukit/doxygen/appl-config

Re: [PATCH] improved error checking in ticks per timeslice

2024-03-05 Thread zack leung
Hey i've replied with another patch :) On Tue, 5 Mar 2024 at 10:42, Kinsey Moore wrote: > Zack, > It looks like there's been a little confusion here. Sebastian was > requesting that you condense the pair of #ifs into a single #if with && and > the defined check st

Re: [PATCH] improved error checking in ticks per timeslice

2024-03-04 Thread zack leung
ping On Tue, 27 Feb 2024 at 21:33, zack leung wrote: > > joel said: >+#if CONFIGURE_TICKS_PER_TIMESLICE <= 0 && > > defined(CONFIGURE_TICKS_PER_TIMESLICE) > > + #error "CONFIGURE_TICKS_PER_TIMESLICE shall be greater than zero" >

Re: [PATCH] improved error checking in ticks per timeslice

2024-02-27 Thread zack leung
it is safer to check that > it is defined > before checking its value. Yes, the defined() check should be first. - sebestian You said this in relation to joel's comment in my previous thread. You can check in either one. The previous one used the "and" statement. Zack On Tue, 2

Re: [PATCH] improved error checking in ticks per timeslice

2024-02-26 Thread zack leung
ping On Tue, 20 Feb 2024 at 20:25, zack leung wrote: > ping > > On Sun, 18 Feb 2024 at 21:15, wrote: > >> --- >> cpukit/doxygen/appl-config.h | 2 +- >> cpukit/include/rtems/confdefs/clock.h | 6 ++ >> 2 files changed, 7 insertions(+), 1 d

Re: [PATCH] improved error checking in ticks per timeslice

2024-02-20 Thread zack leung
ping On Sun, 18 Feb 2024 at 21:15, wrote: > --- > cpukit/doxygen/appl-config.h | 2 +- > cpukit/include/rtems/confdefs/clock.h | 6 ++ > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/cpukit/doxygen/appl-config.h b/cpukit/doxygen/appl-config.h > index bd7cde628f..

Re: [PATCH] improved error checking in ticks per timeslice

2024-02-14 Thread zack leung
; > I'm cc'ing Sebastian because you edited the text in a generated file. He > > should be able to point us to the right place to fix it. > > > > On Mon, Feb 12, 2024 at 8:26 PM > <mailto:zakthertems...@gmail.com>> wrote: > > > > Fro

Re: [PATCH] fixed warning related to spstdc17

2023-11-10 Thread zack leung
ping On Tue, 31 Oct 2023 at 22:07, zack leung wrote: > Sorry either I lack knowledge in C or lack knowledge in working with > rtems. Do you mean if rtems smp is defined then we make sure that scheduler > context base type is defined? I don't quite understand why it would be >

Re: [PATCH] fixed warning related to spstdc17

2023-10-31 Thread zack leung
ler.h file which is where the struct is defined. On Mon, 30 Oct 2023 at 03:04, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 29.10.23 02:44, zack leung wrote: > > ./../../cpukit/include/rtems/score/schedulerpriority.h:87:21: error: > > field '

Re: [PATCH] fixed warning related to spstdc17

2023-10-30 Thread zack leung
:40, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > > > On 27.10.23 03:43, zack leung wrote: > > ping > > > > On Tue, 24 Oct 2023 at 22:17, zack leung > <mailto:zakthertems...@gmail.com>> wrote: > > > > that didn't work

Re: [PATCH] fixed warning related to spstdc17

2023-10-26 Thread zack leung
ping On Tue, 24 Oct 2023 at 22:17, zack leung wrote: > that didn't work but i'm thinking of defining a char array that is equal > to the size of the processor lock and the isr lock? i figured that the > processor lock is 64 bits and isr lock is a one bit? > I'm con

Re: [PATCH] fixed warning related to spstdc17

2023-10-24 Thread zack leung
ue, 24 Oct 2023 at 08:31, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 24.10.23 14:02, zack leung wrote: > > hi! sabestian did you mean the size of the structure? > > Yes, one option to get rid of the empty structures is to just provide > typedefs,

Re: [PATCH] fixed warning related to spstdc17

2023-10-24 Thread zack leung
hi! sabestian did you mean the size of the structure? On Mon, 23 Oct 2023 at 10:20, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello Zack, > > there is a bit more work to do to fix this warning. The warning fix > should not result in a size increase of the

[PATCH] fixed warning related to spstdc17

2023-10-20 Thread zack liang
--- cpukit/include/rtems/score/isrlock.h | 1 + cpukit/include/rtems/score/scheduler.h | 1 + 2 files changed, 2 insertions(+) diff --git a/cpukit/include/rtems/score/isrlock.h b/cpukit/include/rtems/score/isrlock.h index 7586624f9d..612f17a34d 100644 --- a/cpukit/include/rtems/score/isrlock.h

[PATCH] fixes 4942 Regulator warnings

2023-08-14 Thread zack
diff --git a/cpukit/libmisc/regulator/regulator.c b/cpukit/libmisc/regulator/regulator.c index 2071c468fd..97a48be4f5 100644 --- a/cpukit/libmisc/regulator/regulator.c +++ b/cpukit/libmisc/regulator/regulator.c @@ -35,6 +35,7 @@ #include #include +#include #include -- 2.34.1 ___

Re: [PATCH] TMS570 console driver, SCI frame error (baudrate calculation error)

2023-07-14 Thread zack leung
a patch, just a code change snippet and explanation. Zack > turned it into > > a patch. You will need to post that on the ticket to get the submitter's > feedback. > > > > I hope you don't mind copying that to the ticket and seeing what you > think is > >

[PATCH] TMS570 console driver, SCI frame error (baudrate calculation error)

2023-07-11 Thread zack
fixes #4903 adressing an error in the TMS570 console driver --- bsps/arm/tms570/console/tms570-sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Fixes #4903 diff --git a/bsps/arm/tms570/console/tms570-sci.c b/bsps/arm/tms570/console/tms570-sci.c index 768770a4c8..59a0b7e6f1 100644 ---

[PATCH] TMS570 console driver, SCI frame error (baudrate calculation error)

2023-07-11 Thread zack
Fixes #4903 diff --git a/bsps/arm/tms570/console/tms570-sci.c b/bsps/arm/tms570/console/tms570-sci.c index 768770a4c8..59a0b7e6f1 100644 --- a/bsps/arm/tms570/console/tms570-sci.c +++ b/bsps/arm/tms570/console/tms570-sci.c @@ -311,7 +311,7 @@ bool tms570_sci_set_attributes( /* Apply baudrate to

[PATCH] TMS570 console driver, SCI frame error (baudrate calculation error)

2023-07-09 Thread zack
Fixes #4903 diff --git a/bsps/arm/tms570/console/tms570-sci.c b/bsps/arm/tms570/console/tms570-sci.c index 768770a4c8..59a0b7e6f1 100644 --- a/bsps/arm/tms570/console/tms570-sci.c +++ b/bsps/arm/tms570/console/tms570-sci.c @@ -311,7 +311,7 @@ bool tms570_sci_set_attributes( /* Apply baudrate to

[PATCH] TMS570 console driver, SCI frame error (baudrate calculation error)

2023-07-09 Thread zack
--- bsps/arm/tms570/console/tms570-sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Fixes #4903 diff --git a/bsps/arm/tms570/console/tms570-sci.c b/bsps/arm/tms570/console/tms570-sci.c index 768770a4c8..59a0b7e6f1 100644 --- a/bsps/arm/tms570/console/tms570-sci.c +++ b/bsps/arm/tms570

readdir issue 4674

2023-03-04 Thread zack leung
- hi guys i am working on #4674 - currently i'm not able to get it to produce the error - my code looks like this - #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #include #include #include #include #include #include const char rtems_test_name[] = "FSREADDIR

[PATCH] fixes 4557

2023-02-13 Thread Zack leung
From: zack Closes #4557 --- cpukit/libmisc/shell/main_edit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpukit/libmisc/shell/main_edit.c b/cpukit/libmisc/shell/main_edit.c index 6e954639e2..8317452b7b 100644 --- a/cpukit/libmisc/shell/main_edit.c +++ b/cpukit/libmisc

[patch] medit issue

2023-02-10 Thread zack leung
libmisc/shell: User can't cut using ctrl e and x in medit Closes #4557 --- cpukit/libmisc/shell/main_edit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpukit/libmisc/shell/main_edit.c b/cpukit/libmisc/shell/main_edit.c index 6e954639e2..8317452b7b 100644 --- a/cpukit/li

[patch] fixes 4557

2023-02-09 Thread zack leung
fixes 4557 user can't cut using ctrl e and x in medit --- cpukit/libmisc/shell/main_edit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpukit/libmisc/shell/main_edit.c b/cpukit/libmisc/shell/main_edit.c index 6e954639e2..8317452b7b 100644 --- a/cpukit/libmisc/shell/main_e

[patch] medit problem

2023-02-04 Thread zack leung
fixes #4557 --- cpukit/libmisc/shell/main_edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpukit/libmisc/shell/main_edit.c b/cpukit/libmisc/shell/main_edit.c index 191eefa19d..71bb1d931b 100644 --- a/cpukit/libmisc/shell/main_edit.c +++ b/cpukit/libmisc/shell/main_ed

Ticket 4364

2023-01-03 Thread zack leung
Hello, I'm currently looking at ticket 4364. It says that there is a difference between the test results printed by the console and what is emailed to @devel. I don't see a difference and i'm just wondering if it has been fixed Zack __

[PATCH] rtems_shell_main_chmod problem

2022-12-26 Thread zack leung
Closes #4751 --- cpukit/libmisc/shell/main_chmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libmisc/shell/main_chmod.c b/cpukit/libmisc/shell/main_chmod.c index 1f646d92d4..9a42cbd940 100644 --- a/cpukit/libmisc/shell/main_chmod.c +++ b/cpukit/libmisc/shell/main_c

[PATCH] rtems_shell_main_chmod problem

2022-12-26 Thread zack leung
Closes #4751 --- cpukit/libmisc/shell/main_chmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libmisc/shell/main_chmod.c b/cpukit/libmisc/shell/main_chmod.c index 1f646d92d4..9a42cbd940 100644 --- a/cpukit/libmisc/shell/main_chmod.c +++ b/cpukit/libmisc/shell/main_c

[PATCH] rtems_shell_main_chmod problem

2022-12-26 Thread zack leung
Closes #4751 --- cpukit/libmisc/shell/main_chmod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libmisc/shell/main_chmod.c b/cpukit/libmisc/shell/main_chmod.c index 1f646d92d4..9a42cbd940 100644 --- a/cpukit/libmisc/shell/main_chmod.c +++ b/cpukit/libmisc/shell/main_c

Re: [PATCH] rtems_shell_main_mmove problem

2022-12-22 Thread zack leung
Bump On Wed, 14 Dec 2022 at 20:12, zack leung wrote: > Closes #4556 > --- > cpukit/libmisc/shell/main_mmove.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/cpukit/libmisc/shell/main_mmove.c > b/cpukit/libmisc/shell/main_mmove.c > index 38731

[PATCH] rtems_shell_main_mmove problem

2022-12-14 Thread zack leung
Closes #4556 --- cpukit/libmisc/shell/main_mmove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libmisc/shell/main_mmove.c b/cpukit/libmisc/shell/main_mmove.c index 38731b10a2..0029882d62 100644 --- a/cpukit/libmisc/shell/main_mmove.c +++ b/cpukit/libmisc/shell/main_m

Re: [PATCH] added malloc usable size and test

2022-03-10 Thread zack leung
Ping Il ven 4 mar 2022, 21:58 zack leung ha scritto: > closes #4503 > --- > cpukit/include/rtems/libcsupport.h| 5 +++ > cpukit/libcsupport/src/mallocusablesize.c | 48 +++ > spec/build/cpukit/librtemscpu.yml | 1 + > testsuites/libtests

[PATCH] added malloc usable size and test

2022-03-04 Thread zack leung
closes #4503 --- cpukit/include/rtems/libcsupport.h| 5 +++ cpukit/libcsupport/src/mallocusablesize.c | 48 +++ spec/build/cpukit/librtemscpu.yml | 1 + testsuites/libtests/malloctest/init.c | 15 ++- 4 files changed, 68 insertions(+), 1 deletion(-) c

[PATCH] added malloc usable size and test

2022-03-03 Thread zack leung
--- cpukit/include/rtems/libcsupport.h| 5 +++ cpukit/libcsupport/src/mallocusablesize.c | 48 +++ spec/build/cpukit/librtemscpu.yml | 1 + testsuites/libtests/malloctest/init.c | 15 ++- 4 files changed, 68 insertions(+), 1 deletion(-) create mode 10

Re: [PATCH] added malloc usable size and test

2022-02-25 Thread zack leung
ping On Sat, 26 Feb 2022 at 02:42, zack leung wrote: > ping > * > > On Sun, 20 Feb 2022 at 02:55, zack leung wrote: > >> diff --git a/cpukit/include/rtems/libcsupport.h >> b/cpukit/include/rtems/libcsupport.h >> index f4be4cfc9a..ec385bb71a 100644 >> -

Re: [PATCH] added malloc usable size and test

2022-02-25 Thread zack leung
ping * On Sun, 20 Feb 2022 at 02:55, zack leung wrote: > diff --git a/cpukit/include/rtems/libcsupport.h > b/cpukit/include/rtems/libcsupport.h > index f4be4cfc9a..ec385bb71a 100644 > --- a/cpukit/include/rtems/libcsupport.h > +++ b/cpukit/include/rtems/libcsupport.h > @@ -73,

[PATCH] added malloc usable size and test

2022-02-19 Thread zack leung
diff --git a/cpukit/include/rtems/libcsupport.h b/cpukit/include/rtems/libcsupport.h index f4be4cfc9a..ec385bb71a 100644 --- a/cpukit/include/rtems/libcsupport.h +++ b/cpukit/include/rtems/libcsupport.h @@ -73,7 +73,10 @@ extern size_t malloc_free_space(void); * Find amount of free heap remainin

[PATCH] added malloc usable size and test

2022-02-17 Thread zack leung
--- cpukit/include/rtems/libcsupport.h| 5 ++- cpukit/libcsupport/src/mallocusablesize.c | 47 +++ spec/build/cpukit/librtemscpu.yml | 1 + testsuites/libtests/malloctest/init.c | 13 +++ 4 files changed, 65 insertions(+), 1 deletion(-) create mode 10

[PATCH] added malloc usable size and test

2022-02-13 Thread zack leung
--- cpukit/include/rtems/libcsupport.h| 8 ++- cpukit/libcsupport/src/mallocusablesize.c | 28 +++ spec/build/cpukit/librtemscpu.yml | 1 + testsuites/libtests/malloctest/init.c | 15 +++- 4 files changed, 50 insertions(+), 2 deletions(-) crea

Re: Malloc tests

2022-01-13 Thread zack leung
There a way to get the same values used to make the calculation in malloc get usable size? Bump Il ven 7 gen 2022, 21:25 zack leung ha scritto: > I think that the malloc tests is calculated differently than alloc_size+ > allocsize mod it looks like this > *alloc_size = (uintptr_t) n

Re: Malloc tests

2022-01-07 Thread zack leung
the current block? On Thu, 6 Jan 2022 at 21:28, Joel Sherrill wrote: > On Thu, Jan 6, 2022 at 2:55 PM Gedare Bloom wrote: > > > > On Tue, Jan 4, 2022 at 6:10 PM zack leung > wrote: > > > > > > Helllo , > > > I'm working on a patch fo

Malloc tests

2022-01-04 Thread zack leung
Helllo , I'm working on a patch for malloc_get_usable size right now so far i have this test case for malloc, I just make sure that the value is null and i just malloc an int and then i make a call to the function malloc_usable size and then i compare it like this. static void test_malloc_usable

Re: New validation test suites

2021-12-13 Thread zack leung
What tasks can I do that can help with ECSS compliance? Zack On Mon, 13 Dec 2021 at 21:40, Chris Johns wrote: > On 14/12/21 1:53 am, Sebastian Huber wrote: > > Hello, > > > > the ESA activity to pre-qualify parts of RTEMS according to ECSS > requirements is > &g

Re: Ticket 4429

2021-11-18 Thread zack leung
bump On Mon, 18 Oct 2021 at 23:47, zack leung wrote: > bump > > > On Wed, 6 Oct 2021 at 00:30, zack leung wrote: > >> For relative times, the clock identifier is not used to select the clock >> and instead always the CLOCK_MONOTONIC is used. A side-effect is that >

Re: Ticket 4503

2021-11-18 Thread zack leung
bump On Mon, 18 Oct 2021 at 23:58, zack leung wrote: > bump > > > On Sat, 25 Sept 2021 at 00:26, zack leung > wrote: > >> bump >> >> On Thu, 9 Sept 2021 at 02:17, zack leung >> wrote: >> >>> >Thanks! I guess i'm really unsure a

Re: [PATCH] fix memory leak within calloc.c libtests

2021-11-01 Thread zack leung
bump On Mon, 18 Oct 2021 at 23:46, zack leung wrote: > fix came from github code inspector, flagged by one of the analysis that > was done > --- > testsuites/libtests/POSIX/calloc.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/testsuites/li

Re: Ticket 4503

2021-10-18 Thread zack leung
bump On Sat, 25 Sept 2021 at 00:26, zack leung wrote: > bump > > On Thu, 9 Sept 2021 at 02:17, zack leung wrote: > >> >Thanks! I guess i'm really unsure about how the pointer relates to the >> amount of memory that you can use. I assume the Malloc keeps track

Re: Ticket 4429

2021-10-18 Thread zack leung
bump On Wed, 6 Oct 2021 at 00:30, zack leung wrote: > For relative times, the clock identifier is not used to select the clock > and instead always the CLOCK_MONOTONIC is used. A side-effect is that > sleep() and nanosleep() use the wrong clock (CLOCK_MONOTONIC instead of > CL

[PATCH] fix memory leak within calloc.c libtests

2021-10-18 Thread zack leung
fix came from github code inspector, flagged by one of the analysis that was done --- testsuites/libtests/POSIX/calloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testsuites/libtests/POSIX/calloc.c b/testsuites/libtests/POSIX/calloc.c index bd04faa800..a7537c8cc4 10064

Scope of variables flagged by code inspector

2021-10-10 Thread zack leung
flagged as uninitialized. But personally, I feel it's easier to read if we don't change where variables are defined. An example of this is found in testsuites/mptests/mp09/task1.c. An array called recieve_Buffer could be defined later. I'm not sure if this matters much. I want t

Ticket 4429

2021-10-05 Thread zack leung
ed. I know that if it's not a realtime clock then Thread_queue_Context_set_enqueue_timeout_monotonic_timespec is called and i believe that all the appropriate branches are there to make the monotonic clock work. Zack ___ devel mailing list devel@rtem

Re: Ticket 4503

2021-09-24 Thread zack leung
bump On Thu, 9 Sept 2021 at 02:17, zack leung wrote: > >Thanks! I guess i'm really unsure about how the pointer relates to the > amount of memory that you can use. I assume the Malloc keeps track of the > sections being used in the heap. Does this function Allocate 2 blocks si

Re: [PATCHv5] improve the format error reporting on i386

2021-09-24 Thread zack leung
bump On Thu, 23 Sept 2021 at 00:21, zack leung wrote: > I can send an example of the exception if you want. > > zack > > On Wed, 22 Sept 2021 at 18:01, Gedare Bloom wrote: > >> Joel, >> >> This looks good to me. I don't know if you can easily test it

Re: [PATCHv5] improve the format error reporting on i386

2021-09-22 Thread zack leung
I can send an example of the exception if you want. zack On Wed, 22 Sept 2021 at 18:01, Gedare Bloom wrote: > Joel, > > This looks good to me. I don't know if you can easily test it? > > Gedare > > On Wed, Sep 22, 2021 at 11:26 AM zack leung > wrote: > > >

[PATCHv5] improve the format error reporting on i386

2021-09-22 Thread zack leung
ll hex values now have 8 character width thread id is now hex updates #4203 --- cpukit/score/cpu/i386/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c index 77b7a7161c..786cf8b0b6 100644 --- a/cpukit/score/cpu

[PATCHv5] improve the format error reporting on i386

2021-09-21 Thread zack leung
all hex values now have 8 character width thread id is now hex --- cpukit/score/cpu/i386/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c index 77b7a7161c..786cf8b0b6 100644 --- a/cpukit/score/cpu/i386/cpu.c +

Re: [PATCH v4] improve the format of error reporting on i386

2021-09-20 Thread zack leung
printk(" EAX = 0%08" PRIx32 "EBX = 0%08" PRIx32 "ECX = 0%08" PRIx32 "EDX = 0%08" PRIx32 "\n", should it look like this gedare? will send once you give the ok On Sun, 19 Sept 2021 at 17:42, zack leung wrote: > Bumo &

Re: [PATCH v4] improve the format of error reporting on i386

2021-09-19 Thread zack leung
Bumo Il ven 17 set 2021, 19:57 zack leung ha scritto: > Where am i missing it? > > Zack > > On Fri, 17 Sept 2021 at 23:15, Gedare Bloom wrote: > >> Hi Zack, >> >> I think you have also missed Joel's request to add an 8-character >> width specif

Re: [PATCH v4] improve the format of error reporting on i386

2021-09-17 Thread zack leung
Where am i missing it? Zack On Fri, 17 Sept 2021 at 23:15, Gedare Bloom wrote: > Hi Zack, > > I think you have also missed Joel's request to add an 8-character > width specifier. > > On Thu, Sep 16, 2021 at 6:19 PM zack leung > wrote: > > > > Thread id i

[PATCH v4] improve the format of error reporting on i386

2021-09-16 Thread zack leung
Thread id is now a Hex value. formatting improved for hex values Updates #4203 --- cpukit/score/cpu/i386/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c index 77b7a7161c..0f17cf0148 100644 --- a/cpukit/score/

Re: [PATCH v4] improve the format of error reporting on i386

2021-09-15 Thread zack leung
p0); Before I send my patch here is what i'll change . So i can do this for example format the hex values with 0x and have the thread id as a hex value. On Wed, 15 Sept 2021 at 15:18, Gedare Bloom wrote: > On Mon, Sep 13, 2021 at 6:10 PM zack leung > wrote: > > > > Gedar

Re: [PATCH v4] improve the format of error reporting on i386

2021-09-13 Thread zack leung
Gedare told me just to change the ID when I submitted the other I sent you in discord. Sorry for things bouncing back and forth. On Mon, 13 Sept 2021 at 23:44, Joel Sherrill wrote: > On Sun, Sep 12, 2021 at 7:02 PM zack leung > wrote: > > > > Thread id is now a Hex value.

[PATCH v4] improve the format of error reporting on i386

2021-09-12 Thread zack leung
Thread id is now a Hex value. Updates #4203 --- cpukit/score/cpu/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c index 77b7a7161c..06af57418d 100644 --- a/cpukit/score/cpu/i386/cpu.c +++ b/cpukit/score/cpu/i386/

Re: Subject: [PATCH] improve the format error reporting on i386

2021-09-10 Thread zack leung
Where are the duplicates been trying to fix the commit messages? Thanks zack Il gio 9 set 2021, 22:30 Gedare Bloom ha scritto: > Hi Zack, > > It looks like something got a little messed up with your commit > message. Please see if you can fix it to remove the duplication(s). >

Subject: [PATCH] improve the format error reporting on i386

2021-09-09 Thread zack leung
score/i386: improve the format of exception reporting Updates #4203."Updates #4203." --- cpukit/score/cpu/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c index 77b7a7161c..06af57418d 100644 --- a/cpukit/score/c

Re: Ticket 4503

2021-09-08 Thread zack leung
implement a wrapper and what safety measures need to be implemented. So far it's checking if : the block is not in the heap and if it's been previously used. Is the usable memory in the heap calculated by: the size of the block * # of blocks? Thanks, Zack -- Forwarded message -

Re: [PATCH] improve the format of error reporting on i386

2021-09-08 Thread zack leung
Thread ID is now a hex value part of ticket #4203 On Wed, 8 Sept 2021 at 23:58, Zacchaeus Leung wrote: > diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c > index 77b7a7161c..06af57418d 100644 > --- a/cpukit/score/cpu/i386/cpu.c > +++ b/cpukit/score/cpu/i386/cpu.c > @@ -21

Ticket 4503

2021-09-07 Thread zack leung
ket/4271>? Thanks Zack ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] improve the format error reporting on i386

2021-09-07 Thread zack leung
- thread id is printed as a hex value - EBP ESP is now printed as a address pointer %p - Program counter is printed as a pinter Part of ticket #4203 On Wed, 8 Sept 2021 at 00:17, Zacchaeus Leung wrote: > --- > cpukit/score/cpu/i386/cpu.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletion

Re: Ticket #4203 clarification

2021-09-03 Thread zack leung
Say i find an exception (ex format string printing a decimal.) How do I test that my improvement works? Thanks Zack On Fri, 3 Sept 2021 at 01:36, Joel Sherrill wrote: > On Thu, Sep 2, 2021 at 8:01 PM zack leung > wrote: > > > > Hello! > > > > I'd like to

Ticket #4203 clarification

2021-09-02 Thread zack leung
exception number/names is in the manual for the architecture. For an i386 or later, that should be in many places. Where do i find the documentation of the bsps? Thanks Zack ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH v3] Test needed for timer_create with CLOCK_MONOTONIC

2021-08-06 Thread zack leung
How do i report the findings of the psx and tests? Thanks Zack On Thu, 5 Aug 2021 at 19:23, Gedare Bloom wrote: > On Thu, Aug 5, 2021 at 12:36 PM Zacchaeus Leung > wrote: > > > > the timer_create() method can use CLOCK_MONOTONIC but there was no test > for this >

Re: [PATCH v2] Test needed for timer_create with CLOCK_MONOTONIC

2021-08-05 Thread zack leung
create if ( ptimer->clock_type != CLOCK_REALTIME && ptimer->clock_type != CLOCK_MONOTONIC ) rtems_set_errno_and_return_minus_one( EINVAL ); Zack On Wed, 4 Aug 2021 at 16:02, Gedare Bloom wrote: > On Wed, Jul 28, 2021 at 6:28 PM Zacchaeus Leung > wrote: > > >

Re: [PATCH v2] Test needed for timer_create with CLOCK_MONOTONIC

2021-08-04 Thread zack leung
bump On Thu, 29 Jul 2021 at 00:28, Zacchaeus Leung wrote: > the timer_create() method can use CLOCK_MONOTONIC but there was no test > for this > > Closes #3888 > --- > cpukit/include/rtems/posix/timer.h| 1 + > cpukit/posix/src/psxtimercreate.c | 3 +- > cpukit/posix/src/time

Re: [PATCH] closes #3889

2021-07-24 Thread zack leung
> - remaining = 0; > + result->tv_nsec=0; > + result->tv_sec=0; This isn't correct. result is an uninitialized pointer. So then how do I set the timespec's value to 0? I have changed the timespec variables i have declared from pointers to regular variables. in the original code the

Re: [PATCH V2] closes #3889 new defect Test needed for timer_create with CLOCK_MONOTONIC

2021-07-19 Thread zack leung
, I have made changes to reduce code duplication. The structure of the code has changed so I had to format things. Thanks Zack On Thu, 15 Jul 2021 at 15:29, Gedare Bloom wrote: > The first line of the commit should be shorter. Use a blank line, and > then close the ticket with the Closes

Re: [PATCH] Addded test for timer_create with clock_monotonic

2021-06-30 Thread zack leung
&value->it_value); Why convert back and forth between timespec and ticks? why not just update this function to use timespec values? Do you want me to change remaining to be a timespec? change the field it_value to a timespec? Zack Ps: thanks for being so patient with my patch. I'm sti

[PATCH] Addded test for timer_create with clock_monotonic

2021-06-29 Thread Zack
--- cpukit/include/rtems/posix/timer.h| 1 + cpukit/posix/src/psxtimercreate.c | 5 +- cpukit/posix/src/timergettime.c | 79 --- testsuites/psxtests/psxtimer02/psxtimer.c | 38 ++- 4 files changed, 98 insertions(+), 25 deletions(-) diff --gi

[PATCH] part of implimenting a monotonic clock in rtems part of this is not the final patch.

2021-06-09 Thread zack
From: zack --- cpukit/include/rtems/posix/timer.h| 6 ++- cpukit/posix/src/psxtimercreate.c | 5 +- cpukit/posix/src/timergettime.c | 61 --- testsuites/psxtests/psxtimer02/psxtimer.c | 26 +++--- 4 files changed, 81 insertions(+), 17