Initialize APPDATA.{fd,bk}_ev fields for kernel threads.

This prevents crash in event.inc:RemoveEventTo because of
zero pointer dereference.

git-svn-id: svn://kolibrios.org@8087 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Ivan Baravy 2020-10-02 12:30:11 +00:00
parent d48c9cc35c
commit 5e4de2dfd1

View File

@ -1130,6 +1130,10 @@ proc setup_os_slot
shr ecx, 2 shr ecx, 2
rep movsd rep movsd
lea eax, [edx+APP_EV_OFFSET]
mov dword [edx+APPDATA.fd_ev], eax
mov dword [edx+APPDATA.bk_ev], eax
lea eax, [edx+APP_OBJ_OFFSET] lea eax, [edx+APP_OBJ_OFFSET]
mov dword [edx+APPDATA.fd_obj], eax mov dword [edx+APPDATA.fd_obj], eax
mov dword [edx+APPDATA.bk_obj], eax mov dword [edx+APPDATA.bk_obj], eax