Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graceful shutdown for VxWorks/MCP750 #216

Open
jphickey opened this issue Nov 13, 2020 · 1 comment
Open

Graceful shutdown for VxWorks/MCP750 #216

jphickey opened this issue Nov 13, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@jphickey
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When the CFE "Restart" command is executed, it calls CFE_PSP_Restart(). In the MCP750 implementation, this ultimately just invokes the reboot() kernel API.

This is rather extreme -- all apps/tasks are still running when this command comes in, and this just suddenly reboots the CPU with no notice. Those tasks could have been doing something important when they suddenly get the carpet ripped out from underneath.

Describe the solution you'd like
Should do some sort of graceful shutdown like Linux does with CTRL+C handling. Cancel or suspend all running tasks first so that when the "reboot()" is called there shouldn't be any other activity going on.

Describe alternatives you've considered

Additional context
During CFE 6.8 testing there was some occasional spurious exceptions observed when issuing the CFE Restart command - causing it to effectively execute a PROCESSOR restart instead of the intended POWERON Reset.

I was not able to reproduce that with the core framework distro, but my hypothesis is that there were possibly some apps running and doing something when the reboot was initiated and this set the stage for indeterminate behavior.

Requester Info
Joseph Hickey, Vantage Systems, Inc.

@skliper
Copy link
Contributor

skliper commented Nov 13, 2020

Ping @wmoleski

@jphickey jphickey added the enhancement New feature or request label Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants