sunriseos / SunriseOS

Horizon/NX kernel reimplementation
Apache License 2.0
229 stars 13 forks source link

Dump stack in a thread-safe way. #503

Open todo[bot] opened 4 years ago

todo[bot] commented 4 years ago

dump_stack should allow reading the stack in a thread-safe way through the use of volatile reads. This would allow having a totally safe dump_stack function that can be used at will.


https://github.com/sunriseos/SunriseOS/blob/a2961e802031dc5b6522d2f9aa3d250d9c7d1f6d/kernel/src/panic.rs#L190-L200


This issue was generated by todo based on a TODO comment in a2961e802031dc5b6522d2f9aa3d250d9c7d1f6d when #501 was merged. cc @roblabla.