summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-11-20 22:43:43 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-11-20 22:43:43 +0100
commit58f8da3300c9ffcd7f9b5773ce2a5b9110a4c207 (patch)
treea745b97107dfffe8877af32ce67e0c9754ca1483 /boot
parent7bd08cf55d83fcaa493bd1553bee11e3eb17408e (diff)
Fix boot startup
* boot/boot.c (S_processor_set_tasks): Do not always return 0.
Diffstat (limited to 'boot')
-rw-r--r--boot/boot.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/boot/boot.c b/boot/boot.c
index 491c1a96..2fe1688e 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -1995,8 +1995,10 @@ S_processor_set_tasks(mach_port_t processor_set,
size_t i;
if (!task_ihash.nr_items)
- *task_listCnt = 0;
- return 0;
+ {
+ *task_listCnt = 0;
+ return 0;
+ }
err = vm_allocate (mach_task_self (), (vm_address_t *) task_list,
task_ihash.nr_items * sizeof **task_list, 1);