Prevented hart_max_harts() from returning 0
authorAndrew Waterman <waterman@r53.millennium.berkeley.edu>
Tue, 27 Oct 2009 06:28:13 +0000 (23:28 -0700)
committerAndrew Waterman <waterman@r53.millennium.berkeley.edu>
Tue, 27 Oct 2009 06:28:13 +0000 (23:28 -0700)
commit36680fe5e222d55d9bacaec73cdfba85ff7d8765
tree353b9c2ad1d939cf0c91dcef3dfbe5e9444bb892
parentaf451a0c982fa306ebb807d2cb5b4cca37e5ad05
Prevented hart_max_harts() from returning 0

The current algorithm is hart_max_harts() == num_cpus-1,
because core 0 is reserved.  However, single-core processes
still need something to run on, so on uniprocessor systems
we return 1 rather than 1-1.
kern/src/env.c