diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-11-20 22:43:43 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-11-20 22:43:43 +0100 |
commit | 58f8da3300c9ffcd7f9b5773ce2a5b9110a4c207 (patch) | |
tree | a745b97107dfffe8877af32ce67e0c9754ca1483 | |
parent | 7bd08cf55d83fcaa493bd1553bee11e3eb17408e (diff) |
Fix boot startup
* boot/boot.c (S_processor_set_tasks): Do not always return 0.
-rw-r--r-- | boot/boot.c | 6 |
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); |