Add thread_ctrl::get_thread_stack

Returns addr and size of current thread's stack.
This commit is contained in:
Nekotekina 2020-11-16 13:57:15 +03:00
parent d7e1cf7dd2
commit d789250976
2 changed files with 27 additions and 0 deletions

View file

@ -262,6 +262,9 @@ public:
// Miscellaneous
static u64 get_thread_affinity_mask();
// Get current thread stack addr and size
static std::pair<void*, std::size_t> get_thread_stack();
private:
// Miscellaneous
static const u64 process_affinity_mask;