linux/bootstrap: use Forbid/Permit only when thread is main AROS thread
commitb94b34a97a491ffb2650d717c7cbbe245bbc5ab9
authordeadwood <deadwood@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 8 Nov 2015 17:16:51 +0000 (8 17:16 +0000)
committerdeadwood <deadwood@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 8 Nov 2015 17:16:51 +0000 (8 17:16 +0000)
tree1fde975dc5c6308efe42dbd522599e6dc0d5a3eb
parentd882b09702494a142c29bbcc62a7b01960ce2b37
linux/bootstrap: use Forbid/Permit only when thread is main AROS thread

There can be more threads running in AROS process - for example
threads started by linux-side libraries. Only the AROS thread (the
initial thread created by AROS process) should call Forbid/Permit -
otherwise the TDNestCnt can get uncontrolled values and AROS tasks
might for example start executing in permanent Forbid state.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@51202 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
arch/all-linux/bootstrap/malloc.c
arch/all-linux/bootstrap/mmakefile.src
arch/all-linux/bootstrap/preboot.c [new file with mode: 0644]
arch/all-unix/bootstrap/kickstart.c
arch/all-unix/bootstrap/mmakefile.src
arch/all-unix/bootstrap/platform.h
arch/all-unix/bootstrap/preboot.c [new file with mode: 0644]