You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "W-M-R (via GitHub)" <gi...@apache.org> on 2025/02/18 10:03:45 UTC

[PR] arm64: Initialize sctrl_el1 when running fork [nuttx]

W-M-R opened a new pull request, #15857:
URL: https://github.com/apache/nuttx/pull/15857

   *Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## Summary
   
   arm64: Initialize sctrl_el1 when running fork
   
   ## Impact
   
   None
   
   ## Testing
   
   CI
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] arm64: Initialize sctrl_el1 when running fork [nuttx]

Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #15857:
URL: https://github.com/apache/nuttx/pull/15857#issuecomment-2665533412

   @nuttxpr test qemu-armv8a:netnsh


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] arm64: Initialize sctrl_el1 when running fork [nuttx]

Posted by "lupyuen (via GitHub)" <gi...@apache.org>.
lupyuen commented on PR #15857:
URL: https://github.com/apache/nuttx/pull/15857#issuecomment-2665550212

   @W-M-R Please remember to:
   - Fill in the Commit Description: https://github.com/apache/nuttx/pull/15857/commits/3742be91c3f0c98001f311700f0aca89a53075f3
   - Remove this from the PR Description: 'Note: Please adhere to..."
   - Could you explain why we need to init sctrl_el1 when running fork, and why it wasn't done earlier? Please fill in the PR Description. Thanks :-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Bug]arm64: Initialize sctrl_el1 when running fork [nuttx]

Posted by "GUIDINGLI (via GitHub)" <gi...@apache.org>.
GUIDINGLI merged PR #15857:
URL: https://github.com/apache/nuttx/pull/15857


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] arm64: Initialize sctrl_el1 when running fork [nuttx]

Posted by "nuttxpr (via GitHub)" <gi...@apache.org>.
nuttxpr commented on PR #15857:
URL: https://github.com/apache/nuttx/pull/15857#issuecomment-2665548954

   [**\[Experimental Bot, please feedback here\]**](https://github.com/search?q=repo%3Aapache%2Fnuttx+15779&type=issues)
   
   Build and Test Successful (qemu-armv8a:netnsh)
   https://gitlab.com/lupyuen/nuttx-build-log/-/snippets/4808026
   ```text
   $ git clone https://github.com/W-M-R/nuttx nuttx --branch mte-sctlr
   $ git clone https://github.com/apache/nuttx-apps apps --branch master
   $ pushd nuttx
   $ git reset --hard HEAD
   HEAD is now at 3742be91c3 arm64: Initialize sctrl_el1 when running fork
   $ popd
   $ pushd apps
   $ git reset --hard HEAD
   HEAD is now at 62894b9ba examples/spislave_test: Add user data receive
   $ popd
   NuttX Source: https://github.com/apache/nuttx/tree/3742be91c3f0c98001f311700f0aca89a53075f3
   NuttX Apps: https://github.com/apache/nuttx-apps/tree/62894b9baf2978815ceec454e53118e6d83c84f6
   $ cd nuttx
   $ tools/configure.sh qemu-armv8a:netnsh
   $ make -j
   $ dd if=/dev/zero of=./mydisk-1gb.img bs=1M count=1024
   $ qemu-system-aarch64 --version
   QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.5)
   $ qemu-system-aarch64 -cpu cortex-a53 -nographic -machine virt,virtualization=on,gic-version=3 -chardev stdio,id=con,mux=on -serial chardev:con -global virtio-mmio.force-legacy=false -device virtio-serial-device,bus=virtio-mmio-bus.0 -chardev socket,telnet=on,host=127.0.0.1,port=3450,server=on,wait=off,id=foo -device virtconsole,chardev=foo -device virtio-rng-device,bus=virtio-mmio-bus.1 -netdev user,id=u1,hostfwd=tcp:127.0.0.1:10023-10.0.2.15:23,hostfwd=tcp:127.0.0.1:15001-10.0.2.15:5001 -device virtio-net-device,netdev=u1,bus=virtio-mmio-bus.2 -drive file=./mydisk-1gb.img,if=none,format=raw,id=hd -device virtio-blk-device,bus=virtio-mmio-bus.3,drive=hd -mon chardev=con,mode=readline -kernel ./nuttx
   nsh> uname -a
   NuttX  0.0.0 3742be91c3 Feb 18 2025 20:17:34 arm64 qemu-armv8a
   nsh> ostest
   VARIABLE  BEFORE   AFTER
   ======== ======== ========
   arena     7be7000  7be7000
   ordblks         8        6
   mxordblk  7b91f38  7b8fef8
   uordblks    51878    54c48
   fordblks  7b95788  7b923b8
   user_main: Exiting
   ostest_main: Exiting with status 0
   
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] arm64: Initialize sctrl_el1 when running fork [nuttx]

Posted by "W-M-R (via GitHub)" <gi...@apache.org>.
W-M-R commented on PR #15857:
URL: https://github.com/apache/nuttx/pull/15857#issuecomment-2667422251

   > @W-M-R Please remember to:
   > 
   > * Fill in the Commit Description: [3742be9](https://github.com/apache/nuttx/commit/3742be91c3f0c98001f311700f0aca89a53075f3)
   > * Remove this from the PR Description: 'Note: Please adhere to..."
   > * Could you explain why we need to init sctrl_el1 when running fork, and why it wasn't done earlier? Please fill in the PR Description. Thanks :-)
   
   OK


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org