Zero out new thread's register context
commitedc64c03b91257aecae0d60886bd274aea300bf9
authorJakub Jermar <jakub@jermar.eu>
Tue, 17 Jul 2018 22:42:57 +0000 (18 00:42 +0200)
committerJakub Jermar <jakub@jermar.eu>
Tue, 17 Jul 2018 22:42:57 +0000 (18 00:42 +0200)
treea260a23f58519833a82acd5995adf9f044a7f7a7
parent58093d99e8de3e461cadfcbc02a56288a1c5a2d6
Zero out new thread's register context

This removes the information leak in which the new thread inherited some
register values from the thread which created it. Also, now each thread
begins execution with a well-defined register state.
kernel/generic/src/proc/thread.c