]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/stack.c
xnu-792.18.15.tar.gz
[apple/xnu.git] / osfmk / kern / stack.c
index 840ff67434b512402342c1f92481f15f93496823..f9fb6682c9680c55a074ca5a2aecdbf48158659d 100644 (file)
@@ -99,7 +99,7 @@ stack_init(void)
                panic("stack_init: kmem_suballoc");
 
        map_addr = vm_map_min(stack_map);
-       if (vm_map_enter(stack_map, &map_addr, vm_map_round_page(PAGE_SIZE), 0, VM_FLAGS_FIXED,
+       if (vm_map_enter(stack_map, &map_addr, vm_map_round_page(PAGE_SIZE), 0, (VM_MAKE_TAG(VM_MEMORY_STACK) | VM_FLAGS_FIXED),
                                                VM_OBJECT_NULL, 0, FALSE, VM_PROT_NONE, VM_PROT_NONE, VM_INHERIT_DEFAULT) != KERN_SUCCESS)
                panic("stack_init: vm_map_enter");
 }