]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
thread: fix thread0 tid allocation
authormjg <mjg@FreeBSD.org>
Wed, 11 Nov 2020 08:48:43 +0000 (08:48 +0000)
committermjg <mjg@FreeBSD.org>
Wed, 11 Nov 2020 08:48:43 +0000 (08:48 +0000)
commitaa300d84277358a387f4c6e3f72f72f76b7a0bc0
tree8ebdd99de477d3567144c77a1dae023858526d10
parent9b270b55edd1cb1d1ef0b93866e23855bf9f95bc
thread: fix thread0 tid allocation

Startup code hardcodes the value instead of allocating it.
The first spawned thread would then be a duplicate.

Pointy hat: mjg
sys/kern/init_main.c
sys/kern/kern_thread.c
sys/sys/proc.h