1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 09:44:58 +00:00

Kernel + LibPthread: Use Userspace<T> in the create_thread syscall

This commit is contained in:
Brian Gianforcaro 2020-08-05 00:11:56 -07:00 committed by Andreas Kling
parent 337e8f98cd
commit 7490ea9449
4 changed files with 6 additions and 6 deletions

View file

@ -383,7 +383,7 @@ int pthread_attr_getstack(const pthread_attr_t* attributes, void** p_stack_ptr,
if (!attributes_impl || !p_stack_ptr || !p_stack_size)
return EINVAL;
*p_stack_ptr = attributes_impl->m_stack_location;
*p_stack_ptr = attributes_impl->m_stack_location.ptr();
*p_stack_size = attributes_impl->m_stack_size;
return 0;