Added explicit physical address parameter to vm_create_anonymous_area() and

create_area_etc(). 0 for the default behavior.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31941 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-07-29 21:30:35 +00:00
parent 3b1e4fd549
commit d3b44ccb14
7 changed files with 22 additions and 20 deletions
+1 -1
View File
@@ -559,7 +559,7 @@ create_thread(thread_creation_attributes& attributes, bool kernel)
thread->user_stack_area = create_area_etc(team->id, stack_name,
(void **)&thread->user_stack_base, B_BASE_ADDRESS,
thread->user_stack_size + TLS_SIZE, B_NO_LOCK,
B_READ_AREA | B_WRITE_AREA | B_STACK_AREA, 0);
B_READ_AREA | B_WRITE_AREA | B_STACK_AREA, 0, 0);
if (thread->user_stack_area < B_OK
|| arch_thread_init_tls(thread) < B_OK) {
// great, we have a fully running thread without a (usable)