|
|
Log in / Subscribe / Register

Printbuf rebuffed for now

Printbuf rebuffed for now

Posted Apr 29, 2022 13:20 UTC (Fri) by nevets (subscriber, #11875)
In reply to: Printbuf rebuffed for now by mb
Parent article: Printbuf rebuffed for now

> If you have a fixed stack size with known begin and end pointers, then you'd just have to subtract SP from the end pointer.

It's even more complex than that. Depending on the architecture, if you are in interrupt context, you may be on a different stack that is even a different size than the normal context stack. This would require an architecture dependent implementation.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds