GSoC-2022 Hello-World Project for BeagleBone Black

2022-03-14 Thread Prashanth S
Hi All,

This is to send the Hello-World Project for BeagleBone Black BSP.

I am Prashanth S a working professional with experience of 3 years and 6
months. I wanted to be part of open source community especially
contributing RTOS, by taking GSoC-2022 as an
opportunity I like to contribute to BeagleBone Black BSP.

I have previously worked on beaglebone black, developing a learning tool
kit (Bare metal firmware with few supported peripherals CPSW, gpio,
interrupt).
GitHub - slpp95prashanth/Beaglebone-mBootloader at cpsw


Please find the attachment for the patch and screenshot for the hello world
project.

Regards
Prashanth S
Phone Number: 9942432100
Gmail: fishesprasha...@gmail.com
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: GSoC-2022 Hello-World Project for BeagleBone Black

2022-03-14 Thread Joel Sherrill
Congratulations! Send me and gedare@ your snapshot and diff privately or
via Discord.

You also need to add yourself to the table of interested folks

https://devel.rtems.org/wiki/GSoC/2022

On Mon, Mar 14, 2022 at 10:39 AM Prashanth S 
wrote:

> Hi All,
>
> This is to send the Hello-World Project for BeagleBone Black BSP.
>
> I am Prashanth S a working professional with experience of 3 years and 6
> months. I wanted to be part of open source community especially
> contributing RTOS, by taking GSoC-2022 as an
> opportunity I like to contribute to BeagleBone Black BSP.
>
> I have previously worked on beaglebone black, developing a learning tool
> kit (Bare metal firmware with few supported peripherals CPSW, gpio,
> interrupt).
> GitHub - slpp95prashanth/Beaglebone-mBootloader at cpsw
> 
>
> Please find the attachment for the patch and screenshot for the hello world
> project.
>
> Regards
> Prashanth S
> Phone Number: 9942432100
> Gmail: fishesprasha...@gmail.com
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


[PATCH] shell: Avoid potential stack corruption

2022-03-14 Thread Sebastian Huber
The rtems_shell_init() passed the address of a stack variable
(exit_code) to rtems_shell_run().  If wait == false, then the stack
variable goes out of scope but may be accessed by the created shell
thread.

The rtems_shell_script() was affected by the same problem.

Close #4629.
---
 cpukit/libmisc/shell/shell.c | 8 +---
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c
index 1e5962b1e3..3268bfe4f5 100644
--- a/cpukit/libmisc/shell/shell.c
+++ b/cpukit/libmisc/shell/shell.c
@@ -1149,7 +1149,6 @@ static rtems_status_code rtems_shell_run (
   const char *output,
   bool output_append,
   rtems_id wake_on_end,
-  int *exit_code,
   bool echo,
   rtems_shell_login_check_t login_check
 )
@@ -1202,7 +1201,6 @@ static rtems_status_code rtems_shell_run (
   shell_env->parent_stdout = stdout;
   shell_env->parent_stderr = stderr;
   shell_env->wake_on_end   = wake_on_end;
-  shell_env->exit_code = exit_code;
   shell_env->login_check   = login_check;
   shell_env->uid   = getuid();
   shell_env->gid   = getgid();
@@ -1229,7 +1227,7 @@ static rtems_status_code rtems_shell_run (
 sc = rtems_event_receive (RTEMS_EVENT_1, RTEMS_WAIT, 0, &out);
   }
 
-  shell_std_debug("run: end: sc:%d ec:%d\n", sc, *exit_code);
+  shell_std_debug("run: end: sc:%d\n", sc);
 
   return sc;
 }
@@ -1245,7 +1243,6 @@ rtems_status_code rtems_shell_init(
 )
 {
   rtems_id to_wake = RTEMS_ID_NONE;
-  int exit_code = 0;
 
   if ( wait )
 to_wake = rtems_task_self();
@@ -1261,7 +1258,6 @@ rtems_status_code rtems_shell_init(
 "stdout",/* output */
 false,   /* output_append */
 to_wake, /* wake_on_end */
-&exit_code,  /* exit code of command */
 false,   /* echo */
 login_check  /* login check */
   );
@@ -1279,7 +1275,6 @@ rtems_status_code rtems_shell_script (
 )
 {
   rtems_id to_wake = RTEMS_ID_NONE;
-  int exit_code = 0;
   rtems_status_code sc;
 
   shell_std_debug("script: in: %s out: %s\n", input, output);
@@ -1298,7 +1293,6 @@ rtems_status_code rtems_shell_script (
 output,  /* output */
 output_append,   /* output_append */
 to_wake, /* wake_on_end */
-&exit_code,  /* exit_code */
 echo,/* echo */
 NULL /* login check */
   );
-- 
2.34.1

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel