Wojciech Macek 4d249cdd4c ULE: provide defaults to ts_cpu
Fix a bug when the system has no CPU 0. When created, threads were implicitly assigned to CPU 0.
This had no practical effect since a real CPU was chosen immediately by the scheduler. However,
on systems without a CPU 0, sched_ule attempted to access the scheduler queue of the "old" CPU
when assigned the initial choice of the old one. This caused an attempt to use illegal memory
and a crash (or, more usually, a deadlock). Fix this by assigned new threads to the BSP
explicitly and add some asserts to see that this problem does not recur.

Authored by:           Nathan Whitehorn <nwhitehorn@freebsd.org>
Submitted by:          Wojciech Macek <wma@semihalf.com>
Obtained from:         Semihalf
Differential revision: https://reviews.freebsd.org/D13932
2018-01-24 07:54:05 +00:00
..
2018-01-08 21:27:41 +00:00
2017-11-30 20:33:45 +00:00
2018-01-03 00:56:30 +00:00
2018-01-03 00:56:30 +00:00
2018-01-14 15:01:25 +00:00
2017-01-25 20:22:32 +00:00
2018-01-08 21:27:41 +00:00
2018-01-08 21:27:41 +00:00
2017-12-13 16:30:39 +00:00
2018-01-24 07:54:05 +00:00
2018-01-08 21:27:41 +00:00
2017-08-07 14:09:57 +00:00
2017-11-30 20:33:45 +00:00
2018-01-12 23:06:35 +00:00
2018-01-22 02:26:10 +00:00
2017-12-01 22:51:02 +00:00
2018-01-12 13:39:02 +00:00