aboutsummaryrefslogtreecommitdiff
path: root/vm/vm_object.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-03-09 23:06:25 +0100
committerRichard Braun <rbraun@sceen.net>2016-03-09 23:10:32 +0100
commit844fb104f5c0c50b94cbf6ab8fb2e97caa4bc7b3 (patch)
treec1fd8b6bb58570c24e4495edfd062f8a95f53500 /vm/vm_object.h
parent2ac2a45ace8fd00b3ac42e3be9dbfbaad95ac819 (diff)
downloadgnumach-844fb104f5c0c50b94cbf6ab8fb2e97caa4bc7b3.tar.gz
gnumach-844fb104f5c0c50b94cbf6ab8fb2e97caa4bc7b3.tar.bz2
gnumach-844fb104f5c0c50b94cbf6ab8fb2e97caa4bc7b3.zip
Fix stack allocation on Xen
Stack allocation on Xen can fail because of fragmentation. This change makes stack allocation use the slab allocator. * kern/thread.c (thread_stack_cache): New global variable. (stack_alloc): Use kmem_cache_alloc instead of vm_page_grab_contig. (stack_collect): Use kmem_cache_free instead of vm_page_free_contig. (kmem_cache_init): Initialize thread_stack_cache.
Diffstat (limited to 'vm/vm_object.h')
0 files changed, 0 insertions, 0 deletions